N98\Magento\Command\Cache\CleanCommandTest::testItCanCleanMultipleCaches PHP Method

testItCanCleanMultipleCaches() public method

    public function testItCanCleanMultipleCaches()
    {
        $application = $this->getApplication();
        $application->add(new CleanCommand());
        $command = $this->getApplication()->find('cache:clean');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'type' => array('config', 'layout')));
        $display = $commandTester->getDisplay();
        $this->assertContains('Cache config cleaned', $display);
        $this->assertContains('Cache layout cleaned', $display);
    }