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:
Côme Chilliet 2025-09-26 17:07:26 +02:00
parent 1f3c1a7e74
commit 3e4531dd05
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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())