N98\Magento\Command\Cache\EnableCommandTest::testExecute PHP Method

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        if ($application->getMagentoMajorVersion() == Application::MAGENTO_MAJOR_VERSION_1) {
            $application->add(new EnableCommand());
            $command = $this->getApplication()->find('cache:enable');
            $commandTester = new CommandTester($command);
            $commandTester->execute(array('command' => $command->getName()));
            $this->assertRegExp('/Caches enabled/', $commandTester->getDisplay());
        }
    }