File tree 3 files changed +3
-13
lines changed
3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 17
17
</testsuite >
18
18
</testsuites >
19
19
<php >
20
- <env name =" MONGODB_URI" value =" mongodb://127.0.0.1 /?directConnection=true" />
20
+ <env name =" MONGODB_URI" value =" mongodb://mongodb /?directConnection=true" />
21
21
<env name =" MONGODB_DATABASE" value =" unittest" />
22
22
<env name =" SQLITE_DATABASE" value =" :memory:" />
23
23
<env name =" QUEUE_CONNECTION" value =" database" />
Original file line number Diff line number Diff line change @@ -152,11 +152,6 @@ public function getTables($schema = null)
152
152
foreach ($ db ->listCollections () as $ collectionInfo ) {
153
153
$ collectionName = $ collectionInfo ->getName ();
154
154
155
- // Skip system collections
156
- if (str_starts_with ($ collectionName , 'system. ' )) {
157
- continue ;
158
- }
159
-
160
155
// Skip views it doesnt suport aggregate
161
156
if ($ collectionInfo ->getType () === 'view ' ) {
162
157
continue ;
@@ -192,11 +187,6 @@ public function getViews($schema = null)
192
187
foreach ($ db ->listCollections () as $ collectionInfo ) {
193
188
$ collectionName = $ collectionInfo ->getName ();
194
189
195
- // Skip system collections
196
- if (str_starts_with ($ collectionName , 'system. ' )) {
197
- continue ;
198
- }
199
-
200
190
// Skip normal type collection
201
191
if ($ collectionInfo ->getType () !== 'view ' ) {
202
192
continue ;
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ public function testGetTables()
420
420
}
421
421
422
422
// Ensure system collections are excluded
423
- $ this ->assertFalse ( str_starts_with ( $ table ['name ' ], 'system. ' ) );
423
+ $ this ->assertStringStartsNotWith ( $ table ['name ' ], 'system. ' );
424
424
}
425
425
426
426
if (! $ found ) {
@@ -516,7 +516,7 @@ public function testSystemCollectionsArePresentButFiltered()
516
516
// Ensure Schema::getTables does NOT include system collections
517
517
$ tables = Schema::getTables ();
518
518
foreach ($ tables as $ table ) {
519
- $ this ->assertFalse ( str_starts_with ( $ table ['name ' ], 'system. ' ) );
519
+ $ this ->assertStringStartsNotWith ( $ table ['name ' ], 'system. ' );
520
520
}
521
521
522
522
// Ensure Schema::getTableListing does NOT include system collections
You can’t perform that action at this time.
0 commit comments