Code Duplication    Length = 14-14 lines in 2 locations

tests/LocalesTest.php 2 locations

@@ 106-119 (lines=14) @@
103
        $this->assertFalse($this->app->make('translatable.locales')->has('jp'));
104
    }
105
106
    public function test_offset_exists()
107
    {
108
        $this->app['config']->set('translatable.locales', [
109
            'el',
110
            'en',
111
            'fr',
112
            'de',
113
            'id',
114
        ]);
115
        $this->app->make('translatable.locales')->load();
116
117
        $this->assertTrue(isset($this->app->make('translatable.locales')['de']));
118
        $this->assertFalse(isset($this->app->make('translatable.locales')['jp']));
119
    }
120
121
    public function test_get()
122
    {
@@ 136-149 (lines=14) @@
133
        $this->assertNull($this->app->make('translatable.locales')->get('jp'));
134
    }
135
136
    public function test_offset_get()
137
    {
138
        $this->app['config']->set('translatable.locales', [
139
            'el',
140
            'en',
141
            'fr',
142
            'de',
143
            'id',
144
        ]);
145
        $this->app->make('translatable.locales')->load();
146
147
        $this->assertEquals('de', $this->app->make('translatable.locales')['de']);
148
        $this->assertNull($this->app->make('translatable.locales')['jp']);
149
    }
150
151
    public function test_add_language_locale()
152
    {