Code Duplication    Length = 15-15 lines in 2 locations

src/Kunstmaan/TranslatorBundle/Tests/unit/Service/Importer/ImportCommandHandlerTest.php 2 locations

@@ 77-91 (lines=15) @@
74
    /**
75
     * @group legacy
76
     */
77
    public function testImportBundleTranslationFiles()
78
    {
79
        if (Kernel::VERSION_ID >= 40000) {
80
            $this->markTestSkipped('Skip symfony 3 test');
81
        }
82
83
        $importCommand = new ImportCommand();
84
        $importCommand
85
            ->setForce(false)
86
            ->setLocales(false)
87
            ->setGlobals(true)
88
            ->setDefaultBundle('own');
89
90
        $this->assertEquals(0, $this->importCommandHandler->importBundleTranslationFiles($importCommand));
91
    }
92
93
    public function testImportSf4TranslationFiles()
94
    {
@@ 93-107 (lines=15) @@
90
        $this->assertEquals(0, $this->importCommandHandler->importBundleTranslationFiles($importCommand));
91
    }
92
93
    public function testImportSf4TranslationFiles()
94
    {
95
        if (Kernel::VERSION_ID < 40000) {
96
            $this->markTestSkipped('Skip symfony 4 test');
97
        }
98
99
        $importCommand = new ImportCommand();
100
        $importCommand
101
            ->setForce(false)
102
            ->setLocales(false)
103
            ->setGlobals(true)
104
            ->setDefaultBundle('own');
105
106
        $this->assertEquals(7, $this->importCommandHandler->importBundleTranslationFiles($importCommand));
107
    }
108
}
109