8000 Fix tests related to Doctrine method renaming · symfony/symfony@05be7b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05be7b2

Browse files
committed
Fix tests related to Doctrine method renaming
1 parent 38f4695 commit 05be7b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function testCreatesTableInTransaction(string $platform)
120120
->willReturn(true);
121121

122122
$platform = $this->createMock($platform);
123-
$platform->method('getCreateTableSQL')
123+
$platform->method(method_exists(AbstractPlatform::class, 'getCreateTablesSQL') ? 'getCreateTablesSQL' : 'getCreateTableSQL')
124124
->willReturn(['create sql stmt']);
125125

126126
$conn->method('getDatabasePlatform')
@@ -165,7 +165,7 @@ public function testTableCreationInTransactionNotSupported()
165165
->willReturn(true);
166166

167167
$platform = $this->createMock(AbstractPlatform::class);
168-
$platform->method('getCreateTableSQL')
168+
$platform->method(method_exists(AbstractPlatform::class, 'getCreateTablesSQL') ? 'getCreateTablesSQL' : 'getCreateTableSQL')
169169
->willReturn(['create sql stmt']);
170170

171171
$conn->expects($this->atLeast(2))
@@ -202,7 +202,7 @@ public function testCreatesTableOutsideTransaction()
202202
->willReturn(false);
203203

204204
$platform = $this->createMock(AbstractPlatform::class);
205-
$platform->method('getCreateTableSQL')
205+
$platform->method(method_exists(AbstractPlatform::class, 'getCreateTablesSQL') ? 'getCreateTablesSQL' : 'getCreateTableSQL')
206206
->willReturn(['create sql stmt']);
207207

208208
$conn->method('getDatabasePlatform')

0 commit comments

Comments
 (0)
0