Skip to content

Commit 65357f4

Browse files
committed
Always require passing test group in provideTests
1 parent 1ed6e95 commit 65357f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,13 @@ public static function provideIndexManagementTests(): Generator
379379
yield from self::provideTests('index-management/tests', 'index-management');
380380
}
381381

382-
private static function provideTests(string $directory, ?string $group = null): Generator
382+
private static function provideTests(string $directory, string $testGroup): Generator
383383
{
384384
$pattern = self::$testDir . '/' . $directory . '/*.json';
385385

386386
$duplicateTests = array_flip(self::$duplicateTests);
387387

388388
foreach (glob($pattern) as $filename) {
389-
$testGroup = $group ?? dirname(basename($filename));
390-
391389
foreach (UnifiedTestCase::fromFile($filename) as $name => $test) {
392390
$testKey = $testGroup . '/' . $name;
393391

0 commit comments

Comments
 (0)