Code Duplication    Length = 12-12 lines in 2 locations

tests/LocalesTest.php 2 locations

@@ 30-41 (lines=12) @@
27
        $this->assertEquals(['de', 'en'], $this->app->make('translatable.locales')->all());
28
    }
29
30
    public function test_all_language_locales()
31
    {
32
        $this->app['config']->set('translatable.locales', [
33
            'el',
34
            'en',
35
            'fr',
36
            'de',
37
            'id',
38
        ]);
39
40
        $this->assertEquals(['el', 'en', 'fr', 'de', 'id'], $this->app->make('translatable.locales')->all());
41
    }
42
43
    public function test_all_country_locales()
44
    {
@@ 59-70 (lines=12) @@
56
        $this->assertEquals(['en', 'en-GB', 'en-US', 'de', 'de-DE', 'de-CH'], $this->app->make('translatable.locales')->all());
57
    }
58
59
    public function test_to_array()
60
    {
61
        $this->app['config']->set('translatable.locales', [
62
            'el',
63
            'en',
64
            'fr',
65
            'de',
66
            'id',
67
        ]);
68
69
        $this->assertEquals(['el', 'en', 'fr', 'de', 'id'], $this->app->make('translatable.locales')->toArray());
70
    }
71
72
    public function test_current_config()
73
    {