From 3e4531dd05dd78b6b343bc6479ab7e6795588bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Fri, 26 Sep 2025 17:07:26 +0200 Subject: [PATCH] fix: Fix methods returning null for arrays in schema Mock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/lib/DB/MigrationsTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/lib/DB/MigrationsTest.php b/tests/lib/DB/MigrationsTest.php index 2d9a67de8bc..3275280fc06 100644 --- a/tests/lib/DB/MigrationsTest.php +++ b/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())