fix: Fix methods returning null for arrays in schema Mock

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/54905/head
Côme Chilliet 7 months ago
parent 1f3c1a7e74
commit 3e4531dd05
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 3
      tests/lib/DB/MigrationsTest.php

@ -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…
Cancel
Save