@@ -475,32 +475,6 @@ public function testGetTableListingBySchema()
475475 $ this ->assertContains ('newcollection ' , $ tables );
476476 $ this ->assertContains ('newcollection_two ' , $ tables );
477477 }
478- // Protected method cannot test
479- // public function testGetAllCollections()
480- // {
481- // // Insert test data into normal collections
482- // DB::connection('mongodb')->table('newcollection')->insert(['test' => 'value']);
483- // DB::connection('mongodb')->table('newcollection_two')->insert(['test' => 'value']);
484-
485- // // Create a view (this creates system.views)
486- // DB::connection('mongodb')->getDatabase()->command([
487- // 'create' => 'test_view',
488- // 'viewOn' => 'newcollection',
489- // 'pipeline' => [],
490- // ]);
491-
492- // $collections = Schema::getAllCollections();
493-
494- // $this->assertIsArray($collections);
495- // $this->assertGreaterThanOrEqual(2, count($collections));
496-
497- // // Ensure normal collections are present
498- // $this->assertContains('newcollection', $collections);
499- // $this->assertContains('newcollection_two', $collections);
500-
501- // // Ensure system collections are excluded
502- // $this->assertNotContains('system.views', $collections);
503- // }
504478
505479 public function testSystemCollectionsArePresentButFiltered ()
506480 {
0 commit comments