Code Duplication    Length = 10-10 lines in 2 locations

tests/ScopesTest.php 2 locations

@@ 132-141 (lines=10) @@
129
        $this->assertSame('France', $result[1]->name);
130
    }
131
132
    public function test_whereTranslation_filters_by_translation_and_locale()
133
    {
134
        Country::create(['code' => 'some-code', 'name' => 'Griechenland']);
135
136
        $this->assertSame(2, Country::whereTranslation('name', 'Griechenland')->count());
137
138
        $result = Country::whereTranslation('name', 'Griechenland', 'de')->get();
139
        $this->assertSame(1, $result->count());
140
        $this->assertSame('gr', $result->first()->code);
141
    }
142
143
    public function test_whereTranslationLike_filters_by_translation()
144
    {
@@ 158-167 (lines=10) @@
155
        $this->assertSame('France', $result[1]->name);
156
    }
157
158
    public function test_whereTranslationLike_filters_by_translation_and_locale()
159
    {
160
        Country::create(['code' => 'some-code', 'name' => 'Griechenland']);
161
162
        $this->assertSame(2, Country::whereTranslationLike('name', 'Griechen%')->count());
163
164
        $result = Country::whereTranslationLike('name', '%riechenlan%', 'de')->get();
165
        $this->assertSame(1, $result->count());
166
        $this->assertSame('gr', $result->first()->code);
167
    }
168
}
169