N98\Magento\Command\Eav\Attribute\Create\DummyCommandTest::testExecute PHP Метод

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

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new DummyCommand());
        $command = $application->find('eav:attribute:create-dummy-values');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'locale' => "en_US", 'attribute-id' => 92, 'values-type' => 'int', 'values-number' => 1));
        $this->assertRegExp('/ATTRIBUTE VALUE: \'(.+)\' ADDED!/', $commandTester->getDisplay());
    }