Skip to content

Commit a908860

Browse files
committed
test: assert filter discovery tokenizes no file
1 parent 4c1c369 commit a908860

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎tests/system/Filters/FiltersTest.php‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,9 @@ public function getClassname(string $file): string
525525
$filtersConfig = $this->createConfigFromArray(FiltersConfig::class, $config);
526526
$filters = $this->createFilters($filtersConfig);
527527

528-
$this->assertNotContains($appConfig, $locator->tokenized);
529-
$this->assertNotContains($systemConfig, $locator->tokenized);
530-
531-
// Any other file is still checked and included.
532-
$this->assertContains($testConfig, $locator->tokenized);
528+
// No discovered file is read and tokenized, the main configs are skipped
529+
// by path and the others are simply included.
530+
$this->assertSame([], $locator->tokenized);
533531

534532
$configFilters = $this->getPrivateProperty($filters, 'config');
535533
$this->assertContains('test-customfilter', array_keys($configFilters->aliases));

0 commit comments

Comments
 (0)