N98\Magento\Command\Admin\User\UnlockCommand::isEnabled PHP Метод

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

public isEnabled ( ) : boolean
Результат boolean
    public function isEnabled()
    {
        return $this->getApplication()->isMagentoEnterprise();
    }

Usage Example

Пример #1
0
 private function getCommand()
 {
     $command = new UnlockCommand();
     $command->setApplication($this->getApplication());
     if (!$command->isEnabled()) {
         $this->markTestSkipped('UnlockCommand is not enabled.');
     }
     return $command;
 }