N98\Magento\Command\Config\SearchCommandTest::testExecute PHP Метод

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

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new DumpCommand());
        $command = $this->getApplication()->find('config:search');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'text' => 'This message will be shown'));
        $this->assertContains('Found a field with a match', $commandTester->getDisplay());
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'text' => 'xyz1234567890'));
        $this->assertContains('No matches for xyz1234567890', $commandTester->getDisplay());
    }
SearchCommandTest