@@ -244,7 +244,6 @@ public function testDropAllTablesWhenSearchPathIsString()
244
244
$ processor ->shouldReceive ('processTables ' )->once ()->andReturn ([['name ' => 'users ' , 'schema ' => 'public ' ]]);
245
245
$ connection ->shouldReceive ('selectFromWriteConnection ' )->with ('sql ' )->andReturn ([['name ' => 'users ' , 'schema ' => 'public ' ]]);
246
246
$ grammar ->shouldReceive ('escapeNames ' )->with (['public ' ])->andReturn (['"public" ' ]);
247
- $ grammar ->shouldReceive ('escapeNames ' )->with ('public ' )->andReturn (['"public" ' ]);
248
247
$ grammar ->shouldReceive ('escapeNames ' )->with (['foo ' ])->andReturn (['"foo" ' ]);
249
248
$ grammar ->shouldReceive ('escapeNames ' )->with (['users ' , 'public.users ' ])->andReturn (['"users" ' , '"public"."users" ' ]);
250
249
$ grammar ->shouldReceive ('compileDropAllTables ' )->with (['public.users ' ])->andReturn ('drop table "public"."users" cascade ' );
@@ -267,11 +266,11 @@ public function testDropAllTablesWhenSearchPathIsStringOfMany()
267
266
$ processor ->shouldReceive ('processTables ' )->once ()->andReturn ([['name ' => 'users ' , 'schema ' => 'foouser ' ]]);
268
267
$ grammar ->shouldReceive ('compileTables ' )->andReturn ('sql ' );
269
268
$ 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"."Áüõß " ' ]);
271
270
$ grammar ->shouldReceive ('escapeNames ' )->with (['foo ' ])->andReturn (['"foo" ' ]);
272
- $ grammar ->shouldReceive ('escapeNames ' )->with ('foouser ' )->andReturn (['"foouser" ' ]);
271
+ $ grammar ->shouldReceive ('escapeNames ' )->with ([ 'foouser ' ] )->andReturn (['"foouser" ' ]);
273
272
$ 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 ' );
275
274
$ connection ->shouldReceive ('statement ' )->with ('drop table "foouser"."users" cascade ' );
276
275
$ builder = $ this ->getBuilder ($ connection );
277
276
@@ -296,11 +295,11 @@ public function testDropAllTablesWhenSearchPathIsArrayOfMany()
296
295
$ processor ->shouldReceive ('processTables ' )->once ()->andReturn ([['name ' => 'users ' , 'schema ' => 'foouser ' ]]);
297
296
$ grammar ->shouldReceive ('compileTables ' )->andReturn ('sql ' );
298
297
$ 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" ' ]);
300
299
$ grammar ->shouldReceive ('escapeNames ' )->with (['foo ' ])->andReturn (['"foo" ' ]);
301
300
$ 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 ' );
304
303
$ connection ->shouldReceive ('statement ' )->with ('drop table "foouser"."users" cascade ' );
305
304
$ builder = $ this ->getBuilder ($ connection );
306
305
0 commit comments