Code Duplication    Length = 17-18 lines in 2 locations

tests/InstallCommandTest.php 2 locations

@@ 36-53 (lines=18) @@
33
    }
34
35
    /** @test */
36
    public function testInstallDevCommand()
37
    {
38
        $application = new Application();
39
        $application->add(new InstallCommand());
40
41
        $command = $application->find('install');
42
        $commandTester = new CommandTester($command);
43
44
        $commandTester->execute([
45
            'command' => $command->getName(),
46
            '--dev'   => true,
47
        ]);
48
49
        $output = $commandTester->getDisplay();
50
        $this->assertContains('Running composer require acacha/admin-lte-template-laravel:dev-master', $output);
51
        $this->assertContains('php artisan adminlte:publish', $output);
52
    }
53
54
    /** @test */
55
    public function testInstallNoAnsiCommand()
56
    {
@@ 55-71 (lines=17) @@
52
    }
53
54
    /** @test */
55
    public function testInstallNoAnsiCommand()
56
    {
57
        $application = new Application();
58
        $application->add(new InstallCommand());
59
60
        $command = $application->find('install');
61
        $commandTester = new CommandTester($command);
62
63
        $commandTester->execute([
64
            'command'   => $command->getName(),
65
            '--no-ansi' => true,
66
        ]);
67
68
        $output = $commandTester->getDisplay();
69
        $this->assertContains('--no-ansi', $output);
70
    }
71
}
72