N98\Magento\Command\Developer\SymlinksCommandTest::testExecute PHP Method

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new SymlinksCommand());
        $application->setAutoExit(false);
        $command = $this->getApplication()->find('dev:symlinks');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), '--global' => true, '--on' => true));
        $this->assertRegExp('/Symlinks allowed/', $commandTester->getDisplay());
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), '--global' => true, '--off' => true));
        $this->assertRegExp('/Symlinks denied/', $commandTester->getDisplay());
    }
SymlinksCommandTest