mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix: Fix methods returning null for arrays in schema Mock
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
1f3c1a7e74
commit
3e4531dd05
1 changed files with 3 additions and 0 deletions
|
|
@ -726,6 +726,8 @@ class MigrationsTest extends \Test\TestCase {
|
|||
$table->expects($this->any())
|
||||
->method('getName')
|
||||
->willReturn(\str_repeat('a', 30));
|
||||
$table->method('getIndexes')->willReturn([]);
|
||||
$table->method('getForeignKeys')->willReturn([]);
|
||||
|
||||
$table->expects($this->once())
|
||||
->method('getColumns')
|
||||
|
|
@ -735,6 +737,7 @@ class MigrationsTest extends \Test\TestCase {
|
|||
$schema->expects($this->once())
|
||||
->method('getTables')
|
||||
->willReturn([$table]);
|
||||
$schema->method('getSequences')->willReturn([]);
|
||||
|
||||
$sourceSchema = $this->createMock(Schema::class);
|
||||
$sourceSchema->expects($this->any())
|
||||
|
|
|
|||
Loading…
Reference in a new issue