Code Duplication    Length = 13-13 lines in 2 locations

Tests/Command/TranslationCommandTest.php 2 locations

@@ 41-53 (lines=13) @@
38
        $this->commandTester = new CommandTester($this->command);
39
    }
40
41
    public function testExport()
42
    {
43
        $this->commandTester->execute(array(
44
            'command' => 'itkg_translation:translation:converter',
45
            '--input' => 'yml',
46
            '--output' => 'csv',
47
            '--path' => $this->importPath.'/data',
48
            '--output-path' => $this->exportPath
49
        ));
50
51
        $this->assertEquals(file_get_contents($this->exportPath.'/domain.en.csv'), file_get_contents($this->importPath.'/result/domain.en.csv'));
52
        $this->assertEquals(file_get_contents($this->exportPath.'/messages.fr.csv'), file_get_contents($this->importPath.'/result/messages.fr.csv'));
53
    }
54
55
    public function testExportSpecificDomain()
56
    {
@@ 70-82 (lines=13) @@
67
        $this->assertEquals(file_get_contents($this->exportPath.'/domain/domain.en.csv'), file_get_contents($this->importPath.'/result/domain.en.csv'));
68
    }
69
70
    public function testImport()
71
    {
72
        $this->commandTester->execute(array(
73
            'command' => 'itkg_translation:translation:converter',
74
            '--input' => 'csv',
75
            '--output' => 'yml',
76
            '--path' => $this->importPath.'/data',
77
            '--output-path' => $this->exportPath
78
        ));
79
80
        $this->assertEquals(file_get_contents($this->exportPath.'/domain.en.yml'), file_get_contents($this->importPath.'/result/domain.en.yml'));
81
        $this->assertEquals(file_get_contents($this->exportPath.'/messages.fr.yml'), file_get_contents($this->importPath.'/result/messages.fr.yml'));
82
    }
83
}
84