File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,21 @@ public function testConnectionWithSchema()
148
148
$ this ->assertTrue ($ adapter ->hasTable ('foo. ' . $ adapter ->getSchemaTableName ()));
149
149
}
150
150
151
+ public function testConnectionWithSchemaAndConnection ()
152
+ {
153
+ $ this ->adapter ->connect ();
154
+ $ this ->adapter ->createSchema ('foo ' );
155
+
156
+ $ options = [
157
+ 'schema ' => 'foo ' ,
158
+ 'connection ' => $ this ->adapter ->getConnection (),
159
+ 'name ' => PGSQL_DB_CONFIG ['name ' ],
160
+ ];
161
+ $ adapter = new PostgresAdapter ($ options , new ArrayInput ([]), new NullOutput ());
162
+ $ adapter ->connect ();
163
+ $ this ->assertTrue ($ adapter ->hasTable ('foo. ' . $ adapter ->getSchemaTableName ()));
164
+ }
165
+
151
166
public function testCreatingTheSchemaTableOnConnect ()
152
167
{
153
168
$ this ->adapter ->connect ();
You can’t perform that action at this time.
0 commit comments