N98\Magento\Command\System\Setup\CompareVersionsCommandTest::testExecute PHP Method

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new CompareVersionsCommand());
        $command = $this->getApplication()->find('sys:setup:compare-versions');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName()));
        $this->assertRegExp('/Setup/', $commandTester->getDisplay());
        $this->assertRegExp('/Module/', $commandTester->getDisplay());
        $this->assertRegExp('/DB/', $commandTester->getDisplay());
        $this->assertRegExp('/Data/', $commandTester->getDisplay());
        $this->assertRegExp('/Status/', $commandTester->getDisplay());
    }
CompareVersionsCommandTest