@@ -428,6 +428,7 @@ public function test_locales_as_array_keys_are_properly_detected()
428428 public function test_locale_separator_can_be_configured ()
429429 {
430430 $ this ->app ->config ->set ('translatable.locales ' , ['en ' => ['GB ' ]]);
431+ $ this ->app ->make ('translatable.locales ' )->load ();
431432 $ this ->app ->config ->set ('translatable.locale_separator ' , '_ ' );
432433 $ data = [
433434 'en_GB ' => ['name ' => 'Chips ' ],
@@ -443,6 +444,7 @@ public function test_fallback_for_country_based_locales()
443444 $ this ->app ->config ->set ('translatable.fallback_locale ' , 'fr ' );
444445 $ this ->app ->config ->set ('translatable.locales ' , ['en ' => ['US ' , 'GB ' ], 'fr ' ]);
445446 $ this ->app ->config ->set ('translatable.locale_separator ' , '- ' );
447+ $ this ->app ->make ('translatable.locales ' )->load ();
446448 $ data = [
447449 'id ' => 1 ,
448450 'fr ' => ['name ' => 'frites ' ],
@@ -460,6 +462,7 @@ public function test_fallback_for_country_based_locales_with_no_base_locale()
460462 $ this ->app ->config ->set ('translatable.fallback_locale ' , 'en ' );
461463 $ this ->app ->config ->set ('translatable.locales ' , ['pt ' => ['PT ' , 'BR ' ], 'en ' ]);
462464 $ this ->app ->config ->set ('translatable.locale_separator ' , '- ' );
465+ $ this ->app ->make ('translatable.locales ' )->load ();
463466 $ data = [
464467 'id ' => 1 ,
465468 'en ' => ['name ' => 'chips ' ],
@@ -477,6 +480,7 @@ public function test_to_array_and_fallback_with_country_based_locales_enabled()
477480 $ this ->app ->config ->set ('translatable.fallback_locale ' , 'fr ' );
478481 $ this ->app ->config ->set ('translatable.locales ' , ['en ' => ['GB ' ], 'fr ' ]);
479482 $ this ->app ->config ->set ('translatable.locale_separator ' , '- ' );
483+ $ this ->app ->make ('translatable.locales ' )->load ();
480484 $ data = [
481485 'id ' => 1 ,
482486 'fr ' => ['name ' => 'frites ' ],
0 commit comments