Code Duplication    Length = 10-10 lines in 2 locations

tests/TranslatableTest.php 2 locations

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