diff --git a/tests/Feature/GetLocaleTest.php b/tests/Feature/GetLocaleTest.php index 5c176af..1add95c 100644 --- a/tests/Feature/GetLocaleTest.php +++ b/tests/Feature/GetLocaleTest.php @@ -4,8 +4,7 @@ use Illuminate\Support\Facades\Cache; beforeEach(function () { - //$lang = 'en'; - //$langPath = realpath(__DIR__ . '/../../resources/lang'); + File::deleteDirectory(lang_path() . '/en'); if (! File::exists(lang_path('en'))) { File::makeDirectory(lang_path() . '/en', 0755, true); @@ -13,10 +12,6 @@ } }); -afterEach(function () { - File::deleteDirectory(lang_path() . '/en'); -}); - it('uses cache for storing locale data', function () { $locale = 'en';