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

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new ListCommand());
        $command = $this->getApplication()->find('cache:list');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName()));
        $this->assertRegExp('/config/', $commandTester->getDisplay());
        $this->assertRegExp('/collections/', $commandTester->getDisplay());
    }
ListCommandTest