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

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new ListCommand());
        $command = $this->getApplication()->find('cache:report');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), '--tags' => true, '--mtime' => true));
        $this->assertRegExp('/ID/', $commandTester->getDisplay());
        $this->assertRegExp('/EXPIRE/', $commandTester->getDisplay());
        $this->assertRegExp('/MTIME/', $commandTester->getDisplay());
        $this->assertRegExp('/TAGS/', $commandTester->getDisplay());
    }
ReportCommandTest