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()
431
431
$ this ->fail ('Collection "newcollection" not found ' );
432
432
}
433
433
}
434
+
434
435
public function testGetViews ()
435
436
{
436
437
DB ::connection ('mongodb ' )->table ('newcollection ' )->insert (['test ' => 'value ' ]);
437
438
DB ::connection ('mongodb ' )->table ('newcollection_two ' )->insert (['test ' => 'value ' ]);
438
439
$ dbName = DB ::connection ('mongodb ' )->getDatabaseName ();
439
440
440
-
441
441
DB ::connection ('mongodb ' )->getDatabase ()->command ([
442
442
'create ' => 'test_view ' ,
443
443
'viewOn ' => 'newcollection ' ,
444
444
'pipeline ' => [],
445
445
]);
446
446
447
447
$ tables = Schema::getViews ();
448
-
448
+
449
449
$ this ->assertIsArray ($ tables );
450
450
$ this ->assertGreaterThanOrEqual (1 , count ($ tables ));
451
451
$ found = false ;
You can’t perform that action at this time.
0 commit comments