@@ -244,7 +244,6 @@ public function testDropAllTablesWhenSearchPathIsString()
244244 $ processor ->shouldReceive ('processTables ' )->once ()->andReturn ([['name ' => 'users ' , 'schema ' => 'public ' ]]);
245245 $ connection ->shouldReceive ('selectFromWriteConnection ' )->with ('sql ' )->andReturn ([['name ' => 'users ' , 'schema ' => 'public ' ]]);
246246 $ grammar ->shouldReceive ('escapeNames ' )->with (['public ' ])->andReturn (['"public" ' ]);
247- $ grammar ->shouldReceive ('escapeNames ' )->with ('public ' )->andReturn (['"public" ' ]);
248247 $ grammar ->shouldReceive ('escapeNames ' )->with (['foo ' ])->andReturn (['"foo" ' ]);
249248 $ grammar ->shouldReceive ('escapeNames ' )->with (['users ' , 'public.users ' ])->andReturn (['"users" ' , '"public"."users" ' ]);
250249 $ grammar ->shouldReceive ('compileDropAllTables ' )->with (['public.users ' ])->andReturn ('drop table "public"."users" cascade ' );
@@ -267,11 +266,11 @@ public function testDropAllTablesWhenSearchPathIsStringOfMany()
267266 $ processor ->shouldReceive ('processTables ' )->once ()->andReturn ([['name ' => 'users ' , 'schema ' => 'foouser ' ]]);
268267 $ grammar ->shouldReceive ('compileTables ' )->andReturn ('sql ' );
269268 $ connection ->shouldReceive ('selectFromWriteConnection ' )->with ('sql ' )->andReturn ([['name ' => 'users ' , 'schema ' => 'foouser ' ]]);
270- $ grammar ->shouldReceive ('escapeNames ' )->with (['foouser ' , 'public ' , 'foo_bar-Baz.Áüõß ' ])->andReturn (['"foo " ' ]);
269+ $ grammar ->shouldReceive ('escapeNames ' )->with (['foouser ' , 'public ' , 'foo_bar-Baz.Áüõß ' ])->andReturn (['"foouser" ' , ' "public" ' , ' "foo_bar-Baz"."Áüõß " ' ]);
271270 $ grammar ->shouldReceive ('escapeNames ' )->with (['foo ' ])->andReturn (['"foo" ' ]);
272- $ grammar ->shouldReceive ('escapeNames ' )->with ('foouser ' )->andReturn (['"foouser" ' ]);
271+ $ grammar ->shouldReceive ('escapeNames ' )->with ([ 'foouser ' ] )->andReturn (['"foouser" ' ]);
273272 $ grammar ->shouldReceive ('escapeNames ' )->with (['users ' , 'foouser.users ' ])->andReturn (['"users" ' , '"foouser"."users" ' ]);
274- $ grammar ->shouldReceive ('compileDropAllTables ' )->with (['" foouser"." users" ' ])->andReturn ('drop table "foouser"."users" cascade ' );
273+ $ grammar ->shouldReceive ('compileDropAllTables ' )->with (['foouser. users ' ])->andReturn ('drop table "foouser"."users" cascade ' );
275274 $ connection ->shouldReceive ('statement ' )->with ('drop table "foouser"."users" cascade ' );
276275 $ builder = $ this ->getBuilder ($ connection );
277276
@@ -296,11 +295,11 @@ public function testDropAllTablesWhenSearchPathIsArrayOfMany()
296295 $ processor ->shouldReceive ('processTables ' )->once ()->andReturn ([['name ' => 'users ' , 'schema ' => 'foouser ' ]]);
297296 $ grammar ->shouldReceive ('compileTables ' )->andReturn ('sql ' );
298297 $ connection ->shouldReceive ('selectFromWriteConnection ' )->with ('sql ' )->andReturn ([['name ' => 'users ' , 'schema ' => 'foouser ' ]]);
299- $ grammar ->shouldReceive ('escapeNames ' )->with (['foouser ' , 'dev ' , 'test ' , 'spaced schema ' ])->andReturn (['"foouser" ' , '"dev" ' , '"test" ' , "spaced schema " ]);
298+ $ grammar ->shouldReceive ('escapeNames ' )->with (['foouser ' , 'dev ' , 'test ' , 'spaced schema ' ])->andReturn (['"foouser" ' , '"dev" ' , '"test" ' , ' "spaced schema" ' ]);
300299 $ grammar ->shouldReceive ('escapeNames ' )->with (['foo ' ])->andReturn (['"foo" ' ]);
301300 $ grammar ->shouldReceive ('escapeNames ' )->with (['users ' , 'foouser.users ' ])->andReturn (['"users" ' , '"foouser"."users" ' ]);
302- $ grammar ->shouldReceive ('escapeNames ' )->with ('foouser ' )->andReturn (['"foouser" ' ]);
303- $ grammar ->shouldReceive ('compileDropAllTables ' )->with (['" foouser"." users" ' ])->andReturn ('drop table "foouser"."users" cascade ' );
301+ $ grammar ->shouldReceive ('escapeNames ' )->with ([ 'foouser ' ] )->andReturn (['"foouser" ' ]);
302+ $ grammar ->shouldReceive ('compileDropAllTables ' )->with (['foouser. users ' ])->andReturn ('drop table "foouser"."users" cascade ' );
304303 $ connection ->shouldReceive ('statement ' )->with ('drop table "foouser"."users" cascade ' );
305304 $ builder = $ this ->getBuilder ($ connection );
306305
0 commit comments