Code Duplication    Length = 9-9 lines in 2 locations

app/Containers/Localization/Tests/Unit/GetLocalizationsTest.php 2 locations

@@ 36-44 (lines=9) @@
33
        // now we check all localizations in particular
34
    }
35
36
    public function test_if_specific_locale_is_returned()
37
    {
38
        $class = App::make(GetAllLocalizationsTask::class);
39
        $localizations = $class->run();
40
41
        $unsupportedLocale = new Localization('fr');
42
43
        $this->assertContains($unsupportedLocale, $localizations, '', false, false, false);
44
    }
45
46
    public function test_if_specific_locale_with_regions_is_returned()
47
    {
@@ 46-54 (lines=9) @@
43
        $this->assertContains($unsupportedLocale, $localizations, '', false, false, false);
44
    }
45
46
    public function test_if_specific_locale_with_regions_is_returned()
47
    {
48
        $class = App::make(GetAllLocalizationsTask::class);
49
        $localizations = $class->run();
50
51
        $unsupportedLocale = new Localization('en', ['en-GB', 'en-US']);
52
53
        $this->assertContains($unsupportedLocale, $localizations, '', false, false, false);
54
    }
55
56
    public function test_if_wrong_locale_is_not_returned()
57
    {