N98\Magento\Command\System\Url\ListCommandTest::testExecute PHP Метод

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

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new ListCommand());
        $command = $this->getApplication()->find('sys:url:list');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'stores' => 0, 'linetemplate' => 'prefix {url} suffix', '--add-categories' => true, '--add-products' => true, '--add-cmspages' => true));
        $this->assertRegExp('/prefix/', $commandTester->getDisplay());
        $this->assertRegExp('/http/', $commandTester->getDisplay());
        $this->assertRegExp('/suffix/', $commandTester->getDisplay());
    }
ListCommandTest