N98\Magento\Command\Admin\User\ListCommandTest::testExecute PHP 메소드

testExecute() 공개 메소드

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new ListCommand());
        $command = $this->getApplication()->find('admin:user:list');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName()));
        $this->assertContains('id', $commandTester->getDisplay());
        $this->assertContains('user', $commandTester->getDisplay());
        $this->assertContains('email', $commandTester->getDisplay());
        $this->assertContains('status', $commandTester->getDisplay());
    }
ListCommandTest