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

_addLayoutUpdatesOptionTest() protected method

protected _addLayoutUpdatesOptionTest ( $dialog, $commandTester, $updateCommand, $moduleBaseFolder )
$dialog
$commandTester
$updateCommand
$moduleBaseFolder
    protected function _addLayoutUpdatesOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder)
    {
        $dialog->setInputStream($this->getInputStream("adminhtml\nn98magerun_unittest\nn98magerun_unittest.xml"));
        $commandTester->execute(array('command' => $updateCommand->getName(), '--add-layout-updates' => true, 'vendorNamespace' => 'N98Magerun', 'moduleName' => 'UnitTest'));
        $configXmlContent = $this->_getConfigXmlContents($moduleBaseFolder);
        $this->assertContains('<adminhtml>', $configXmlContent);
        $this->assertContains('<layout>', $configXmlContent);
        $this->assertContains('<updates>', $configXmlContent);
        $this->assertContains('<n98magerun_unittest>', $configXmlContent);
        $this->assertContains('<file>n98magerun_unittest.xml</file>', $configXmlContent);
    }