N98\Magento\Command\Admin\User\ListCommandTest::testExecute PHP Method

testExecute() public method

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