From e6784f907bc5333df0d22fcf755ce6ab65b3de66 Mon Sep 17 00:00:00 2001 From: Max Beckers Date: Thu, 4 Dec 2025 08:14:00 +0100 Subject: [PATCH 1/2] debug information --- tests/YamlTestSuiteTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/YamlTestSuiteTest.php b/tests/YamlTestSuiteTest.php index 29674dc..2bc6018 100644 --- a/tests/YamlTestSuiteTest.php +++ b/tests/YamlTestSuiteTest.php @@ -66,6 +66,7 @@ public static function yamlTestSuiteProvider(): array $testDirs = []; foreach ($shortcodeDirs as $shortcodeDir) { + echo 'Found shortcode dir: ' . $shortcodeDir . PHP_EOL; $shortcode = basename($shortcodeDir); if (file_exists($shortcodeDir . \DIRECTORY_SEPARATOR . 'in.yaml')) { @@ -73,6 +74,7 @@ public static function yamlTestSuiteProvider(): array } else { $subDirs = glob($shortcodeDir . \DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR); foreach ($subDirs as $subDir) { + echo 'Found sub dir: ' . $subDir . PHP_EOL; if (file_exists($subDir . \DIRECTORY_SEPARATOR . 'in.yaml')) { $shortcodeSub = $shortcode . '-' . basename($subDir); $testDirs[] = [$shortcodeSub, $subDir]; From b8e4e39452268ba0281042caca1825fc60f25889 Mon Sep 17 00:00:00 2001 From: Max Beckers Date: Thu, 4 Dec 2025 08:21:02 +0100 Subject: [PATCH 2/2] ignore duplications --- tests/YamlTestSuiteTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/YamlTestSuiteTest.php b/tests/YamlTestSuiteTest.php index 2bc6018..53dfafa 100644 --- a/tests/YamlTestSuiteTest.php +++ b/tests/YamlTestSuiteTest.php @@ -66,15 +66,16 @@ public static function yamlTestSuiteProvider(): array $testDirs = []; foreach ($shortcodeDirs as $shortcodeDir) { - echo 'Found shortcode dir: ' . $shortcodeDir . PHP_EOL; $shortcode = basename($shortcodeDir); + if (in_array($shortcode, ['name', 'tags'], true)) { + continue; + } if (file_exists($shortcodeDir . \DIRECTORY_SEPARATOR . 'in.yaml')) { $testDirs[] = [$shortcode, $shortcodeDir]; } else { $subDirs = glob($shortcodeDir . \DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR); foreach ($subDirs as $subDir) { - echo 'Found sub dir: ' . $subDir . PHP_EOL; if (file_exists($subDir . \DIRECTORY_SEPARATOR . 'in.yaml')) { $shortcodeSub = $shortcode . '-' . basename($subDir); $testDirs[] = [$shortcodeSub, $subDir];