Code Duplication    Length = 7-7 lines in 2 locations

tests/ScopesTest.php 2 locations

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