24
24
use Symfony \Component \Messenger \Bridge \Doctrine \Transport \PostgreSqlConnection ;
25
25
26
26
/**
27
- * This test checks on a postgres connection whether the doctrine asset filter works as expected
27
+ * This test checks on a postgres connection whether the doctrine asset filter works as expected.
28
28
*
29
29
* @requires extension pdo_pgsql
30
30
*
@@ -63,17 +63,17 @@ public function testFilterAssets()
63
63
{
64
64
$ schemaManager = $ this ->driverConnection ->createSchemaManager ();
65
65
66
- $ this ->assertFalse ($ schemaManager ->tableExists ( 'queue_table ' ));
67
- $ this ->assertTrue ($ schemaManager ->tableExists ( 'app_table ' ));
66
+ $ this ->assertFalse ($ schemaManager ->tablesExist ([ 'queue_table ' ] ));
67
+ $ this ->assertTrue ($ schemaManager ->tablesExist ([ 'app_table ' ] ));
68
68
$ this ->assertTrue ($ this ->hasSequence ('app_table_id ' ));
69
69
70
70
$ connection = new PostgreSqlConnection (['table_name ' => 'queue_table ' ], $ this ->driverConnection );
71
71
$ connection ->setup ();
72
72
73
73
$ schemaManager = $ this ->driverConnection ->createSchemaManager ();
74
74
75
- $ this ->assertTrue ($ schemaManager ->tableExists ( 'queue_table ' ));
76
- $ this ->assertTrue ($ schemaManager ->tableExists ( 'app_table ' ));
75
+ $ this ->assertTrue ($ schemaManager ->tablesExist ([ 'queue_table ' ] ));
76
+ $ this ->assertTrue ($ schemaManager ->tablesExist ([ 'app_table ' ] ));
77
77
$ this ->assertTrue ($ this ->hasSequence ('app_table_id ' ));
78
78
}
79
79
@@ -90,11 +90,11 @@ private function removeAssets(): void
90
90
{
91
91
$ schemaManager = $ this ->driverConnection ->createSchemaManager ();
92
92
93
- if ($ schemaManager ->tableExists ( 'queue_table ' )) {
93
+ if ($ schemaManager ->tablesExist ([ 'queue_table ' ] )) {
94
94
$ schemaManager ->dropTable ('queue_table ' );
95
95
}
96
96
97
- if ($ schemaManager ->tableExists ( 'app_table ' )) {
97
+ if ($ schemaManager ->tablesExist ([ 'app_table ' ] )) {
98
98
$ schemaManager ->dropTable ('app_table ' );
99
99
}
100
100
0 commit comments