diff --git a/tests/Language/AbstractTranslationTestCase.php b/tests/Language/AbstractTranslationTestCase.php index 9edc13479..6085443e9 100644 --- a/tests/Language/AbstractTranslationTestCase.php +++ b/tests/Language/AbstractTranslationTestCase.php @@ -352,6 +352,17 @@ final public function testAllLocalizationParametersAreNotTranslated(string $loca )); } + #[DataProvider('localesProvider')] + final public function testLocaleHasCorrespondingTestCaseFile(string $locale): void + { + $class = array_flip(self::$locales)[$locale]; + + $this->assertTrue(class_exists($class, false), sprintf( + 'Failed asserting that test class "%s" is existing.', + $class, + )); + } + /** * @return array> */ @@ -366,17 +377,6 @@ final public static function localesProvider(): iterable return [$locale => [$locale]]; } - #[DataProvider('localesProvider')] - final public function testLocaleHasCorrespondingTestCaseFile(string $locale): void - { - $class = array_flip(self::$locales)[$locale]; - - $this->assertTrue(class_exists($class, false), sprintf( - 'Failed asserting that test class "%s" is existing.', - $class, - )); - } - // ------------------------------------------------------------------------- // UTILITIES // -------------------------------------------------------------------------