Acacha\Llum\Tests\DevToolsCommandTest::testExecute PHP Method

testExecute() public method

test DevToolsCommand.
public testExecute ( )
    public function testExecute()
    {
        $application = new Application();
        $application->add(new DevToolsCommand());
        $command = $application->find('devtools');
        $commandTester = new CommandTester($command);
        $commandTester->execute(['command' => $command->getName()]);
        $this->assertTrue($this->fileHasContent('/composer.json', 'barryvdh/laravel-ide-helper'));
        $this->assertTrue($this->fileHasContent('/composer.json', 'barryvdh/laravel-debugbar'));
        $this->assertFileExists('vendor/barryvdh/laravel-debugbar');
        $this->assertFileExists('vendor/barryvdh/laravel-ide-helper');
        $this->assertFileExists('config/app.php');
        $this->assertTrue($this->laravelConfigFileHasContent('#llum_providers'));
        $this->assertTrue($this->laravelConfigFileHasContent('#llum_aliases'));
        $this->assertTrue($this->laravelConfigFileHasContent('Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class'));
        $this->assertTrue($this->laravelConfigFileHasContent('Barryvdh\\Debugbar\\ServiceProvider::class'));
        $this->assertTrue($this->laravelConfigFileHasContent("'Debugbar' => Barryvdh\\Debugbar\\Facade::class"));
    }