function UnishTestCase::drupalSitewideDirectory

8.0.x UnishTestCase.php UnishTestCase::drupalSitewideDirectory($major_version = NULL)
7.x UnishTestCase.php UnishTestCase::drupalSitewideDirectory($major_version = NULL)
master UnishTestCase.php UnishTestCase::drupalSitewideDirectory($major_version = NULL)

See also

drush_drupal_sitewide_directory()

2 calls to UnishTestCase::drupalSitewideDirectory()

File

tests/Unish/UnishTestCase.php, line 382

Namespace

Unish

Class

UnishTestCase

Code

function drupalSitewideDirectory($major_version = NULL) {
  if (!$major_version) {
    $major_version = UNISH_DRUPAL_MAJOR_VERSION;
  }
  return ($major_version < 8) ? '/sites/all' : '';
}