From ed0a817e43e7dd19263e8b7431de7fd292c35843 Mon Sep 17 00:00:00 2001 From: thomasmichaelwallace Date: Wed, 22 May 2024 17:36:08 +0100 Subject: [PATCH] fix: compare locale arrays out of order --- tests/Unit/Providers/CountriesServiceProviderTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Providers/CountriesServiceProviderTest.php b/tests/Unit/Providers/CountriesServiceProviderTest.php index da7b74d..b54a949 100644 --- a/tests/Unit/Providers/CountriesServiceProviderTest.php +++ b/tests/Unit/Providers/CountriesServiceProviderTest.php @@ -74,7 +74,10 @@ public function testPartialCountriesConfigHasOnlySupportedCountriesAndLocales() $countryCodes = array_keys($this->app->config->get('countries-partial')); - $this->assertEquals(asort(CountryCode::all()), asort($countryCodes)); + $countryCodeAll = CountryCode::all(); + sort($countryCodeAll); + sort($countryCodes); + $this->assertEquals($countryCodeAll, $countryCodes); collect($this->app->config->get('countries-partial'))->each(function ($country) { $supportedLocales = ['es', 'fr', 'en', 'ie', 'no'];