N98\Magento\Command\System\InfoCommandTest::testExecute PHP Метод

testExecute() публичный Метод

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new InfoCommand());
        $command = $this->getApplication()->find('sys:info');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName()));
        $this->assertRegExp('/Magento System Information/', $commandTester->getDisplay());
        $this->assertRegExp('/Install Date/', $commandTester->getDisplay());
        $this->assertRegExp('/Crypt Key/', $commandTester->getDisplay());
        // Settings argument
        $commandTester->execute(array('command' => $command->getName(), 'key' => 'version'));
        $this->assertRegExp('/\\d+\\.\\d+\\.\\d+\\.\\d+/', $commandTester->getDisplay());
    }
InfoCommandTest