diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-14 16:14:35 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-14 16:14:35 +0100 |
commit | 70e2217d1c23dbe7062c188091c0d9f10a5bd84b (patch) | |
tree | 32ee4dc89475f735f621d5ad864896f82d954b93 /tests/lib/DB/MigrationsTest.php | |
parent | ea377578ad50809c13e792acfa2bc1bd6b94df24 (diff) | |
download | nextcloud-server-70e2217d1c23dbe7062c188091c0d9f10a5bd84b.tar.gz nextcloud-server-70e2217d1c23dbe7062c188091c0d9f10a5bd84b.zip |
Fix dynamic properties and other problems in tests for PHP 8.2
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/DB/MigrationsTest.php')
-rw-r--r-- | tests/lib/DB/MigrationsTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
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') |