N98\Magento\Command\Developer\MergeJsCommandTest::testExecute PHP Метод

testExecute() публичный Метод

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new MergeJsCommand());
        $application->setAutoExit(false);
        $command = $this->getApplication()->find('dev:merge-js');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), '--on' => true, 'store' => 'admin'));
        $this->assertRegExp('/JS Merging enabled/', $commandTester->getDisplay());
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), '--off' => true, 'store' => 'admin'));
        $this->assertRegExp('/JS Merging disabled/', $commandTester->getDisplay());
    }
MergeJsCommandTest