N98\Magento\Command\System\Store\Config\BaseUrlListCommandTest::testExecute PHP Метод

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

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new BaseUrlListCommand());
        $command = $this->getApplication()->find('sys:store:config:base-url:list');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName()));
        $this->assertRegExp('/secure_baseurl/', $commandTester->getDisplay());
        $this->assertRegExp('/unsecure_baseurl/', $commandTester->getDisplay());
    }
BaseUrlListCommandTest