File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
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)
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 ' )
You can’t perform that action at this time.
0 commit comments