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

_addEventsOptionTest() protected method

protected _addEventsOptionTest ( $dialog, $commandTester, $updateCommand, $moduleBaseFolder )
$dialog
$commandTester
$updateCommand
$moduleBaseFolder
    protected function _addEventsOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder)
    {
        $dialog->setInputStream($this->getInputStream("frontend\ncontroller_action_postdispatch\nn98mageruntest_observer\nn98magerun_unittest/observer\ncontrollerActionPostdispatch"));
        $commandTester->execute(array('command' => $updateCommand->getName(), '--add-events' => true, 'vendorNamespace' => 'N98Magerun', 'moduleName' => 'UnitTest'));
        $configXmlContent = $this->_getConfigXmlContents($moduleBaseFolder);
        $this->assertContains('<frontend>', $configXmlContent);
        $this->assertContains('<events>', $configXmlContent);
        $this->assertContains('<n98mageruntest_observer>', $configXmlContent);
        $this->assertContains('<class>n98magerun_unittest/observer</class>', $configXmlContent);
        $this->assertContains('<method>controllerActionPostdispatch</method>', $configXmlContent);
    }