File tree 2 files changed +4
-4
lines changed
Messenger/Bridge/Doctrine/Tests/Transport
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function testConfigureSchema()
79
79
$ schema = new Schema ();
80
80
81
81
$ adapter = new DoctrineDbalAdapter ($ connection );
82
- $ adapter ->configureSchema ($ schema , $ connection );
82
+ $ adapter ->configureSchema ($ schema , $ connection, fn () => true );
83
83
$ this ->assertTrue ($ schema ->hasTable ('cache_items ' ));
84
84
}
85
85
@@ -89,7 +89,7 @@ public function testConfigureSchemaDifferentDbalConnection()
89
89
$ schema = new Schema ();
90
90
91
91
$ adapter = $ this ->createCachePool ();
92
- $ adapter ->configureSchema ($ schema , $ otherConnection );
92
+ $ adapter ->configureSchema ($ schema , $ otherConnection, fn () => false );
93
93
$ this ->assertFalse ($ schema ->hasTable ('cache_items ' ));
94
94
}
95
95
@@ -100,7 +100,7 @@ public function testConfigureSchemaTableExists()
100
100
$ schema ->createTable ('cache_items ' );
101
101
102
102
$ adapter = new DoctrineDbalAdapter ($ connection );
103
- $ adapter ->configureSchema ($ schema , $ connection );
103
+ $ adapter ->configureSchema ($ schema , $ connection, fn () => true );
104
104
$ table = $ schema ->getTable ('cache_items ' );
105
105
$ this ->assertEmpty ($ table ->getColumns (), 'The table was not overwritten ' );
106
106
}
Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ public function testConfigureSchemaDifferentDbalConnection()
422
422
$ schema = new Schema ();
423
423
424
424
$ connection = new Connection ([], $ driverConnection );
425
- $ connection ->configureSchema ($ schema , $ driverConnection2 , fn () => true );
425
+ $ connection ->configureSchema ($ schema , $ driverConnection2 , fn () => false );
426
426
$ this ->assertFalse ($ schema ->hasTable ('messenger_messages ' ));
427
427
}
428
428
You can’t perform that action at this time.
0 commit comments