File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Lock/Tests/Store Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function testCreatesTableInTransaction(string $platform)
120
120
->willReturn (true );
121
121
122
122
$ platform = $ this ->createMock ($ platform );
123
- $ platform ->method ('getCreateTableSQL ' )
123
+ $ platform ->method (method_exists (AbstractPlatform::class, ' getCreateTablesSQL ' ) ? ' getCreateTablesSQL ' : 'getCreateTableSQL ' )
124
124
->willReturn (['create sql stmt ' ]);
125
125
126
126
$ conn ->method ('getDatabasePlatform ' )
@@ -165,7 +165,7 @@ public function testTableCreationInTransactionNotSupported()
165
165
->willReturn (true );
166
166
167
167
$ platform = $ this ->createMock (AbstractPlatform::class);
168
- $ platform ->method ('getCreateTableSQL ' )
168
+ $ platform ->method (method_exists (AbstractPlatform::class, ' getCreateTablesSQL ' ) ? ' getCreateTablesSQL ' : 'getCreateTableSQL ' )
169
169
->willReturn (['create sql stmt ' ]);
170
170
171
171
$ conn ->expects ($ this ->atLeast (2 ))
@@ -202,7 +202,7 @@ public function testCreatesTableOutsideTransaction()
202
202
->willReturn (false );
203
203
204
204
$ platform = $ this ->createMock (AbstractPlatform::class);
205
- $ platform ->method ('getCreateTableSQL ' )
205
+ $ platform ->method (method_exists (AbstractPlatform::class, ' getCreateTablesSQL ' ) ? ' getCreateTablesSQL ' : 'getCreateTableSQL ' )
206
206
->willReturn (['create sql stmt ' ]);
207
207
208
208
$ conn ->method ('getDatabasePlatform ' )
You can’t perform that action at this time.
0 commit comments