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

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

protected _addTranslateOptionTest ( $dialog, $commandTester, $updateCommand, $moduleBaseFolder )
$dialog
$commandTester
$updateCommand
$moduleBaseFolder
    protected function _addTranslateOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder)
    {
        $dialog->setInputStream($this->getInputStream("adminhtml\nN98magerun_UnitTest.csv"));
        $commandTester->execute(array('command' => $updateCommand->getName(), '--add-translate' => true, 'vendorNamespace' => 'N98Magerun', 'moduleName' => 'UnitTest'));
        $configXmlContent = $this->_getConfigXmlContents($moduleBaseFolder);
        $this->assertContains('<adminhtml>', $configXmlContent);
        $this->assertContains('<translate>', $configXmlContent);
        $this->assertContains('<modules>', $configXmlContent);
        $this->assertContains('<N98Magerun_UnitTest>', $configXmlContent);
        $this->assertContains('<files>', $configXmlContent);
        $this->assertContains('<default>N98magerun_UnitTest.csv</default>', $configXmlContent);
    }