N98\Magento\Command\Developer\Module\UpdateCommandTest::_addDefaultOptionTest PHP Метод

_addDefaultOptionTest() защищенный Метод

protected _addDefaultOptionTest ( $dialog, $commandTester, $updateCommand, $moduleBaseFolder )
$dialog
$commandTester
$updateCommand
$moduleBaseFolder
    protected function _addDefaultOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder)
    {
        $dialog->setInputStream($this->getInputStream("sectiontest\ngrouptest\nfieldname\nfieldvalue"));
        $commandTester->execute(array('command' => $updateCommand->getName(), '--add-default' => true, 'vendorNamespace' => 'N98Magerun', 'moduleName' => 'UnitTest'));
        $configXmlContent = $this->_getConfigXmlContents($moduleBaseFolder);
        $this->assertContains('<default>', $configXmlContent);
        $this->assertContains('<sectiontest>', $configXmlContent);
        $this->assertContains('<grouptest>', $configXmlContent);
        $this->assertContains('<fieldname>fieldvalue</fieldname>', $configXmlContent);
    }