|
@@ 124-130 (lines=7) @@
|
| 121 |
|
$this->assertSame('gr', $country->code); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
public function test_orWhereTranslation_filters_by_translation() |
| 125 |
|
{ |
| 126 |
|
$result = Country::whereTranslation('name', 'Greece')->orWhereTranslation('name', 'France')->get(); |
| 127 |
|
$this->assertCount(2, $result); |
| 128 |
|
$this->assertSame('Greece', $result[0]->name); |
| 129 |
|
$this->assertSame('France', $result[1]->name); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
public function test_whereTranslation_filters_by_translation_and_locale() |
| 133 |
|
{ |
|
@@ 150-156 (lines=7) @@
|
| 147 |
|
$this->assertSame('gr', $country->code); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
public function test_orWhereTranslationLike_filters_by_translation() |
| 151 |
|
{ |
| 152 |
|
$result = Country::whereTranslationLike('name', '%eece%')->orWhereTranslationLike('name', '%ance%')->get(); |
| 153 |
|
$this->assertCount(2, $result); |
| 154 |
|
$this->assertSame('Greece', $result[0]->name); |
| 155 |
|
$this->assertSame('France', $result[1]->name); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
public function test_whereTranslationLike_filters_by_translation_and_locale() |
| 159 |
|
{ |