X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2Fbootstrap.inc;h=ab7f8cc193977049d40d5ecb373a23798ee5eb5c;hp=be5b978e9e0a2bfba3809d0fcd4ee0c677cf9ede;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drush/drush/tests/bootstrap.inc b/vendor/drush/drush/tests/bootstrap.inc index be5b978e9..ab7f8cc19 100644 --- a/vendor/drush/drush/tests/bootstrap.inc +++ b/vendor/drush/drush/tests/bootstrap.inc @@ -31,6 +31,16 @@ function unish_init() { $unish_drupal_major = $GLOBALS['UNISH_DRUPAL_MAJOR_VERSION']; } define('UNISH_DRUPAL_MAJOR_VERSION', $unish_drupal_major); + $unish_drupal_minor = ''; + if ($unish_drupal_major == 8) { + if (getenv('UNISH_DRUPAL_MINOR_VERSION')) { + $unish_drupal_minor = '.' . getenv('UNISH_DRUPAL_MINOR_VERSION'); + } + elseif (isset($GLOBALS['UNISH_DRUPAL_MINOR_VERSION'])) { + $unish_drupal_minor = '.' . $GLOBALS['UNISH_DRUPAL_MINOR_VERSION']; + } + } + define('UNISH_DRUPAL_MINOR_VERSION', $unish_drupal_minor); // We read from env then globals then default to mysql. $unish_db_url = 'mysql://root:@127.0.0.1';