| @@ 31-43 (lines=13) @@ | ||
| 28 | $this->assertEquals(['de', 'en'], $this->app->make('translatable.locales')->all()); |
|
| 29 | } |
|
| 30 | ||
| 31 | public function test_all_language_locales() |
|
| 32 | { |
|
| 33 | $this->app['config']->set('translatable.locales', [ |
|
| 34 | 'el', |
|
| 35 | 'en', |
|
| 36 | 'fr', |
|
| 37 | 'de', |
|
| 38 | 'id', |
|
| 39 | ]); |
|
| 40 | $this->app->make('translatable.locales')->load(); |
|
| 41 | ||
| 42 | $this->assertEquals(['el', 'en', 'fr', 'de', 'id'], $this->app->make('translatable.locales')->all()); |
|
| 43 | } |
|
| 44 | ||
| 45 | public function test_all_country_locales() |
|
| 46 | { |
|
| @@ 62-74 (lines=13) @@ | ||
| 59 | $this->assertEquals(['en', 'en-GB', 'en-US', 'de', 'de-DE', 'de-CH'], $this->app->make('translatable.locales')->all()); |
|
| 60 | } |
|
| 61 | ||
| 62 | public function test_to_array() |
|
| 63 | { |
|
| 64 | $this->app['config']->set('translatable.locales', [ |
|
| 65 | 'el', |
|
| 66 | 'en', |
|
| 67 | 'fr', |
|
| 68 | 'de', |
|
| 69 | 'id', |
|
| 70 | ]); |
|
| 71 | $this->app->make('translatable.locales')->load(); |
|
| 72 | ||
| 73 | $this->assertEquals(['el', 'en', 'fr', 'de', 'id'], $this->app->make('translatable.locales')->toArray()); |
|
| 74 | } |
|
| 75 | ||
| 76 | public function test_current_config() |
|
| 77 | { |
|