Code Duplication    Length = 10-10 lines in 2 locations

tests/ScopesTest.php 2 locations

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