N98\Magento\Command\Developer\Translate\SetCommandTest::testExecute PHP Метод

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

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new InlineAdminCommand());
        $application->setAutoExit(false);
        $command = $this->getApplication()->find('dev:translate:set');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'string' => 'foo', 'translate' => 'bar', 'store' => 'admin'));
        $this->assertContains('foo => bar', $commandTester->getDisplay());
    }
SetCommandTest