N98\Magento\Command\Developer\Module\UpdateCommandTest::_addRoutersOptionTest PHP Method

_addRoutersOptionTest() protected method

protected _addRoutersOptionTest ( $dialog, $commandTester, $updateCommand, $moduleBaseFolder )
$dialog
$commandTester
$updateCommand
$moduleBaseFolder
    protected function _addRoutersOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder)
    {
        $dialog->setInputStream($this->getInputStream("admin\nstandard\nn98magerun\n"));
        $commandTester->execute(array('command' => $updateCommand->getName(), '--add-routers' => true, 'vendorNamespace' => 'N98Magerun', 'moduleName' => 'UnitTest'));
        $configXmlContent = $this->_getConfigXmlContents($moduleBaseFolder);
        $this->assertContains('<admin>', $configXmlContent);
        $this->assertContains('<routers>', $configXmlContent);
        $this->assertContains('<n98magerun_unittest>', $configXmlContent);
        $this->assertContains('<args>', $configXmlContent);
        $this->assertContains('<use>standard</use>', $configXmlContent);
        $this->assertContains('<module>n98magerun_unittest</module>', $configXmlContent);
        $this->assertContains('<frontName>n98magerun</frontName>', $configXmlContent);
    }