@@ 101-113 (lines=13) @@ | ||
98 | $this->assertFalse($this->app->make('translatable.locales')->has('jp')); |
|
99 | } |
|
100 | ||
101 | public function test_offset_exists() |
|
102 | { |
|
103 | $this->app['config']->set('translatable.locales', [ |
|
104 | 'el', |
|
105 | 'en', |
|
106 | 'fr', |
|
107 | 'de', |
|
108 | 'id', |
|
109 | ]); |
|
110 | ||
111 | $this->assertTrue(isset($this->app->make('translatable.locales')['de'])); |
|
112 | $this->assertFalse(isset($this->app->make('translatable.locales')['jp'])); |
|
113 | } |
|
114 | ||
115 | public function test_get() |
|
116 | { |
|
@@ 129-141 (lines=13) @@ | ||
126 | $this->assertNull($this->app->make('translatable.locales')->get('jp')); |
|
127 | } |
|
128 | ||
129 | public function test_offset_get() |
|
130 | { |
|
131 | $this->app['config']->set('translatable.locales', [ |
|
132 | 'el', |
|
133 | 'en', |
|
134 | 'fr', |
|
135 | 'de', |
|
136 | 'id', |
|
137 | ]); |
|
138 | ||
139 | $this->assertEquals('de', $this->app->make('translatable.locales')['de']); |
|
140 | $this->assertNull($this->app->make('translatable.locales')['jp']); |
|
141 | } |
|
142 | ||
143 | public function test_add_language_locale() |
|
144 | { |