N98\Magento\Command\Cache\EnableCommandTest::testExecuteMultipleCaches PHP Метод

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

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