Code Duplication    Length = 7-7 lines in 2 locations

tests/ScopesTest.php 2 locations

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