N98\Magento\Command\Developer\Module\Observer\ListCommandTest::testExecute PHP Method

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new ListCommand());
        $command = $this->getApplication()->find('dev:module:observer:list');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'type' => 'global'));
        $this->assertContains('controller_front_init_routers', $commandTester->getDisplay());
    }
ListCommandTest