File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -431,21 +431,21 @@ public function testGetTables()
431431 $ this ->fail ('Collection "newcollection" not found ' );
432432 }
433433 }
434+
434435 public function testGetViews ()
435436 {
436437 DB ::connection ('mongodb ' )->table ('newcollection ' )->insert (['test ' => 'value ' ]);
437438 DB ::connection ('mongodb ' )->table ('newcollection_two ' )->insert (['test ' => 'value ' ]);
438439 $ dbName = DB ::connection ('mongodb ' )->getDatabaseName ();
439440
440-
441441 DB ::connection ('mongodb ' )->getDatabase ()->command ([
442442 'create ' => 'test_view ' ,
443443 'viewOn ' => 'newcollection ' ,
444444 'pipeline ' => [],
445445 ]);
446446
447447 $ tables = Schema::getViews ();
448-
448+
449449 $ this ->assertIsArray ($ tables );
450450 $ this ->assertGreaterThanOrEqual (1 , count ($ tables ));
451451 $ found = false ;
You can’t perform that action at this time.
0 commit comments