public static function Drush_UnitTestCase::setUpBeforeClass

6.x drush_testcase.inc public static Drush_UnitTestCase::setUpBeforeClass()
5.x drush_testcase.inc public static Drush_UnitTestCase::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 Drush_TestCase::setUpBeforeClass

See also

drush_bootstrap()

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

File

tests/drush_testcase.inc, line 489
Initialize a sandboxed environment. Starts with call unish_init() at bottom.

Class

Drush_UnitTestCase
Base class for Drush unit tests

Code

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