public static function UnitUnishTestCase::setUpBeforeClass

8.0.x UnitUnishTestCase.php public static UnitUnishTestCase::setUpBeforeClass()
7.x UnitUnishTestCase.php public static UnitUnishTestCase::setUpBeforeClass()
master UnitUnishTestCase.php public static UnitUnishTestCase::setUpBeforeClass()

Minimally bootstrap drush

This is equivalent to the level DRUSH_BOOTSTRAP_NONE, as we haven't run drush_bootstrap() yet. To do anything, you'll need to bootstrap to some level using drush_bootstrap().

Overrides UnishTestCase::setUpBeforeClass

See also

drush_bootstrap()

1 call to UnitUnishTestCase::setUpBeforeClass()
1 method overrides UnitUnishTestCase::setUpBeforeClass()

File

tests/Unish/UnitUnishTestCase.php, line 26

Namespace

Unish

Class

UnitUnishTestCase
Base class for Drush unit tests

Code

public static function setUpBeforeClass() {
  parent::setUpBeforeClass();
  require_once (__DIR__ . '/../../includes/preflight.inc');
  drush_preflight_prepare();
  // Need to set DRUSH_COMMAND so that drush will be called and not phpunit
  define('DRUSH_COMMAND', UNISH_DRUSH);
}