8000 minor #46629 Fix tests related to Doctrine method renaming (jderusse) · symfony/symfony@95c3dcc · GitHub
[go: up one dir, main page]

Skip to content

Commit 95c3dcc

Browse files
committed
minor #46629 Fix tests related to Doctrine method renaming (jderusse)
This PR was merged into the 5.4 branch. Discussion ---------- Fix tests related to Doctrine method renaming | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | / | License | MIT | Doc PR | / Method used to create table has been renamed in doctrine/dbal#5416 Commits ------- 05be7b2 Fix tests related to Doctrine method renaming
2 parents 38f4695 + 05be7b2 commit 95c3dcc

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