File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/Symfony/Component/Messenger/Bridge/Doctrine Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ public function testItRetrieveTheMessageThatIsOlderThanRedeliverTimeout()
205
205
206
206
public function testTheTransportIsSetupOnGet ()
207
207
{
208
+ $ this ->driverConnection ->executeStatement ('CREATE TABLE unrelated (unknown_type_column) ' );
208
209
$ this ->assertFalse ($ this ->createSchemaManager ()->tablesExist (['messenger_messages ' ]));
209
210
$ this ->assertNull ($ this ->connection ->get ());
210
211
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ public function setup(): void
289
289
{
290
290
$ configuration = $ this ->driverConnection ->getConfiguration ();
291
291
$ assetFilter = $ configuration ->getSchemaAssetsFilter ();
292
- $ configuration ->setSchemaAssetsFilter (static function () { return true ; });
292
+ $ configuration ->setSchemaAssetsFilter (function (string $ tableName ) { return $ tableName === $ this -> configuration [ ' table_name ' ] ; });
293
293
$ this ->updateSchema ();
294
294
$ configuration ->setSchemaAssetsFilter ($ assetFilter );
295
295
$ this ->autoSetup = false ;
You can’t perform that action at this time.
0 commit comments