N98\Magento\Command\Customer\CreateCommandTest::_getCommand PHP Method

_getCommand() protected method

protected _getCommand ( ) : CreateCommand
return CreateCommand
    protected function _getCommand()
    {
        $application = $this->getApplication();
        $application->add(new CreateCommand());
        // try to create a customer with a password < 6 chars
        $command = $this->getApplication()->find('customer:create');
        return $command;
    }