N98\Magento\Command\ListCommandTest::testExecute PHP Method

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $command = $this->getApplication()->find('list');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => 'list'));
        $this->assertContains(sprintf('n98-magerun version %s by netz98 GmbH', $this->getApplication()->getVersion()), $commandTester->getDisplay());
    }
ListCommandTest