Code Duplication    Length = 8-8 lines in 2 locations

Tests/Functional/Command/UpgradeCommandTest.php 2 locations

@@ 82-89 (lines=8) @@
79
        return $app;
80
    }
81
82
    private function runUpdateDependenciesCommand(OutputInterface $output = null)
83
    {
84
        $input = new StringInput('modera:upgrade --dependencies '.__DIR__.'/versions.json');
85
        $input->setInteractive(false);
86
        $app = $this->getApplication();
87
        $result = $app->run($input, $output ?: new NullOutput());
88
        $this->assertEquals(0, $result);
89
    }
90
91
    private function runCommandsCommand(OutputInterface $output = null)
92
    {
@@ 91-98 (lines=8) @@
88
        $this->assertEquals(0, $result);
89
    }
90
91
    private function runCommandsCommand(OutputInterface $output = null)
92
    {
93
        $input = new StringInput('modera:upgrade --run-commands '.__DIR__.'/versions.json');
94
        $input->setInteractive(false);
95
        $app = $this->getApplication();
96
        $result = $app->run($input, $output ?: new NullOutput());
97
        $this->assertEquals(0, $result);
98
    }
99
100
    public function testUpgrade()
101
    {