N98\Magento\Command\Media\DumpCommand::testExecute PHP Метод

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

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new DumpCommand());
        $command = $this->getApplication()->find('media:dump');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'filename' => tempnam('media_'), '--strip' => true));
        $this->assertContains('Compress directory', $commandTester->getDisplay());
    }