@@ -37,6 +37,7 @@ public function test_all_language_locales()
3737 'de ' ,
3838 'id ' ,
3939 ]);
40+ $ this ->app ->make ('translatable.locales ' )->load ();
4041
4142 $ this ->assertEquals (['el ' , 'en ' , 'fr ' , 'de ' , 'id ' ], $ this ->app ->make ('translatable.locales ' )->all ());
4243 }
@@ -53,6 +54,7 @@ public function test_all_country_locales()
5354 'CH ' ,
5455 ],
5556 ]);
57+ $ this ->app ->make ('translatable.locales ' )->load ();
5658
5759 $ this ->assertEquals (['en ' , 'en-GB ' , 'en-US ' , 'de ' , 'de-DE ' , 'de-CH ' ], $ this ->app ->make ('translatable.locales ' )->all ());
5860 }
@@ -66,6 +68,7 @@ public function test_to_array()
6668 'de ' ,
6769 'id ' ,
6870 ]);
71+ $ this ->app ->make ('translatable.locales ' )->load ();
6972
7073 $ this ->assertEquals (['el ' , 'en ' , 'fr ' , 'de ' , 'id ' ], $ this ->app ->make ('translatable.locales ' )->toArray ());
7174 }
@@ -94,6 +97,7 @@ public function test_has()
9497 'de ' ,
9598 'id ' ,
9699 ]);
100+ $ this ->app ->make ('translatable.locales ' )->load ();
97101
98102 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('de ' ));
99103 $ this ->assertFalse ($ this ->app ->make ('translatable.locales ' )->has ('jp ' ));
@@ -108,6 +112,7 @@ public function test_offset_exists()
108112 'de ' ,
109113 'id ' ,
110114 ]);
115+ $ this ->app ->make ('translatable.locales ' )->load ();
111116
112117 $ this ->assertTrue (isset ($ this ->app ->make ('translatable.locales ' )['de ' ]));
113118 $ this ->assertFalse (isset ($ this ->app ->make ('translatable.locales ' )['jp ' ]));
@@ -122,6 +127,7 @@ public function test_get()
122127 'de ' ,
123128 'id ' ,
124129 ]);
130+ $ this ->app ->make ('translatable.locales ' )->load ();
125131
126132 $ this ->assertEquals ('de ' , $ this ->app ->make ('translatable.locales ' )->get ('de ' ));
127133 $ this ->assertNull ($ this ->app ->make ('translatable.locales ' )->get ('jp ' ));
@@ -136,6 +142,7 @@ public function test_offset_get()
136142 'de ' ,
137143 'id ' ,
138144 ]);
145+ $ this ->app ->make ('translatable.locales ' )->load ();
139146
140147 $ this ->assertEquals ('de ' , $ this ->app ->make ('translatable.locales ' )['de ' ]);
141148 $ this ->assertNull ($ this ->app ->make ('translatable.locales ' )['jp ' ]);
@@ -146,6 +153,8 @@ public function test_add_language_locale()
146153 $ this ->app ['config ' ]->set ('translatable.locales ' , [
147154 'de ' ,
148155 ]);
156+ $ this ->app ->make ('translatable.locales ' )->load ();
157+
149158 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('de ' ));
150159 $ this ->assertFalse ($ this ->app ->make ('translatable.locales ' )->has ('en ' ));
151160 $ this ->app ->make ('translatable.locales ' )->add ('en ' );
@@ -157,6 +166,8 @@ public function test_offset_set_language_locale()
157166 $ this ->app ['config ' ]->set ('translatable.locales ' , [
158167 'de ' ,
159168 ]);
169+ $ this ->app ->make ('translatable.locales ' )->load ();
170+
160171 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('de ' ));
161172 $ this ->assertFalse ($ this ->app ->make ('translatable.locales ' )->has ('en ' ));
162173 $ this ->app ->make ('translatable.locales ' )[] = 'en ' ;
@@ -168,6 +179,8 @@ public function test_offset_set_country_locale()
168179 $ this ->app ['config ' ]->set ('translatable.locales ' , [
169180 'de ' ,
170181 ]);
182+ $ this ->app ->make ('translatable.locales ' )->load ();
183+
171184 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('de ' ));
172185 $ this ->assertFalse ($ this ->app ->make ('translatable.locales ' )->has ('de-AT ' ));
173186 $ this ->app ->make ('translatable.locales ' )['de ' ] = 'AT ' ;
@@ -180,6 +193,8 @@ public function test_forget()
180193 'de ' ,
181194 'en ' ,
182195 ]);
196+ $ this ->app ->make ('translatable.locales ' )->load ();
197+
183198 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('de ' ));
184199 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('en ' ));
185200 $ this ->app ->make ('translatable.locales ' )->forget ('en ' );
@@ -192,6 +207,8 @@ public function test_offset_unset()
192207 'de ' ,
193208 'en ' ,
194209 ]);
210+ $ this ->app ->make ('translatable.locales ' )->load ();
211+
195212 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('de ' ));
196213 $ this ->assertTrue ($ this ->app ->make ('translatable.locales ' )->has ('en ' ));
197214 unset($ this ->app ->make ('translatable.locales ' )['en ' ]);
0 commit comments