Skip to content

Commit

Permalink
fix: compare locale arrays out of order
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmichaelwallace committed May 22, 2024
1 parent e13da1f commit ed0a817
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Unit/Providers/CountriesServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit ed0a817

Please sign in to comment.