From 70e2217d1c23dbe7062c188091c0d9f10a5bd84b Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 14 Nov 2022 16:14:35 +0100 Subject: Fix dynamic properties and other problems in tests for PHP 8.2 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/lib/DB/MigrationsTest.php') diff --git a/tests/lib/DB/MigrationsTest.php b/tests/lib/DB/MigrationsTest.php index 3d115f25adf..b7d49b565ac 100644 --- a/tests/lib/DB/MigrationsTest.php +++ b/tests/lib/DB/MigrationsTest.php @@ -31,7 +31,6 @@ use OCP\Migration\IMigrationStep; * @package Test\DB */ class MigrationsTest extends \Test\TestCase { - /** @var MigrationService | \PHPUnit\Framework\MockObject\MockObject */ private $migrationService; /** @var \PHPUnit\Framework\MockObject\MockObject | IDBConnection $db */ @@ -247,6 +246,9 @@ class MigrationsTest extends \Test\TestCase { ->willReturn(\str_repeat('a', 30)); $primaryKey = $this->createMock(Index::class); + $primaryKey->expects($this->once()) + ->method('getName') + ->willReturn(\str_repeat('a', 30)); $table->expects($this->once()) ->method('getColumns') -- cgit v1.2.3