run() public method

run the command
Since: 3.0.0
public run ( string $mode = null ) : string
$mode string name of the mode
return string
Example #1
0
 /**
  * testModule
  *
  * @since 3.0.0
  */
 public function testModuleInvalid()
 {
     /* setup */
     $this->_request->setServer('argv', ['console.php', 'uninstall', 'module', '--no-interaction']);
     $uninstallCommand = new Command\Uninstall($this->_registry, $this->_request, $this->_config);
     /* actual */
     $actual = $uninstallCommand->run('cli');
     /* compare */
     $this->assertFalse($actual);
 }