Code Duplication    Length = 10-10 lines in 2 locations

tests/TranslatableTest.php 2 locations

@@ 91-100 (lines=10) @@
88
        $this->assertSame(null, $country->{'name:unknown-locale'});
89
    }
90
91
    public function test_it_saves_translations()
92
    {
93
        $country = Country::whereCode('gr')->first();
94
95
        $country->name = '1234';
96
        $country->save();
97
98
        $country = Country::whereCode('gr')->first();
99
        $this->assertEquals('1234', $country->name);
100
    }
101
102
    public function test_it_saves_translations_with_mutator()
103
    {
@@ 149-158 (lines=10) @@
146
        $this->assertEquals('Belgium', $country->name);
147
    }
148
149
    public function test_it_creates_translations_using_the_shortcut()
150
    {
151
        $country = new Country();
152
        $country->code = 'be';
153
        $country->name = 'Belgium';
154
        $country->save();
155
156
        $country = Country::whereCode('be')->first();
157
        $this->assertEquals('Belgium', $country->name);
158
    }
159
160
    public function test_it_creates_translations_using_mass_assignment()
161
    {