@@ 158-164 (lines=7) @@ | ||
155 | $this->assertSame('gr', $country->code); |
|
156 | } |
|
157 | ||
158 | public function test_orWhereTranslation_filters_by_translation() |
|
159 | { |
|
160 | $result = Country::whereTranslation('name', 'Greece')->orWhereTranslation('name', 'France')->get(); |
|
161 | $this->assertCount(2, $result); |
|
162 | $this->assertSame('Greece', $result[0]->name); |
|
163 | $this->assertSame('France', $result[1]->name); |
|
164 | } |
|
165 | ||
166 | public function test_whereTranslation_filters_by_translation_and_locale() |
|
167 | { |
|
@@ 184-190 (lines=7) @@ | ||
181 | $this->assertSame('gr', $country->code); |
|
182 | } |
|
183 | ||
184 | public function test_orWhereTranslationLike_filters_by_translation() |
|
185 | { |
|
186 | $result = Country::whereTranslationLike('name', '%eece%')->orWhereTranslationLike('name', '%ance%')->get(); |
|
187 | $this->assertCount(2, $result); |
|
188 | $this->assertSame('Greece', $result[0]->name); |
|
189 | $this->assertSame('France', $result[1]->name); |
|
190 | } |
|
191 | ||
192 | public function test_whereTranslationLike_filters_by_translation_and_locale() |
|
193 | { |