Code Duplication    Length = 10-10 lines in 2 locations

tests/ScopesTest.php 2 locations

@@ 102-111 (lines=10) @@
99
        $this->assertSame('gr', $country->code);
100
    }
101
102
    public function test_whereTranslation_filters_by_translation_and_locale()
103
    {
104
        Country::create(['code' => 'some-code', 'name' => 'Griechenland']);
105
106
        $this->assertSame(2, Country::whereTranslation('name', 'Griechenland')->count());
107
108
        $result = Country::whereTranslation('name', 'Griechenland', 'de')->get();
109
        $this->assertSame(1, $result->count());
110
        $this->assertSame('gr', $result->first()->code);
111
    }
112
113
    public function test_whereTranslationLike_filters_by_translation()
114
    {
@@ 120-129 (lines=10) @@
117
        $this->assertSame('gr', $country->code);
118
    }
119
120
    public function test_whereTranslationLike_filters_by_translation_and_locale()
121
    {
122
        Country::create(['code' => 'some-code', 'name' => 'Griechenland']);
123
124
        $this->assertSame(2, Country::whereTranslationLike('name', 'Griechen%')->count());
125
126
        $result = Country::whereTranslationLike('name', '%riechenlan%', 'de')->get();
127
        $this->assertSame(1, $result->count());
128
        $this->assertSame('gr', $result->first()->code);
129
    }
130
}
131