From 05be7b2102c379b3258849213ee1e0a61d7fe7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Thu, 9 Jun 2022 14:59:41 +0200 Subject: [PATCH] Fix tests related to Doctrine method renaming --- .../Component/Lock/Tests/Store/DoctrineDbalStoreTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php b/src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php index f44c2fd5cfc6e..3f46311ffe9ce 100644 --- a/src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php +++ b/src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php @@ -120,7 +120,7 @@ public function testCreatesTableInTransaction(string $platform) ->willReturn(true); $platform = $this->createMock($platform); - $platform->method('getCreateTableSQL') + $platform->method(method_exists(AbstractPlatform::class, 'getCreateTablesSQL') ? 'getCreateTablesSQL' : 'getCreateTableSQL') ->willReturn(['create sql stmt']); $conn->method('getDatabasePlatform') @@ -165,7 +165,7 @@ public function testTableCreationInTransactionNotSupported() ->willReturn(true); $platform = $this->createMock(AbstractPlatform::class); - $platform->method('getCreateTableSQL') + $platform->method(method_exists(AbstractPlatform::class, 'getCreateTablesSQL') ? 'getCreateTablesSQL' : 'getCreateTableSQL') ->willReturn(['create sql stmt']); $conn->expects($this->atLeast(2)) @@ -202,7 +202,7 @@ public function testCreatesTableOutsideTransaction() ->willReturn(false); $platform = $this->createMock(AbstractPlatform::class); - $platform->method('getCreateTableSQL') + $platform->method(method_exists(AbstractPlatform::class, 'getCreateTablesSQL') ? 'getCreateTablesSQL' : 'getCreateTableSQL') ->willReturn(['create sql stmt']); $conn->method('getDatabasePlatform')