Mercurial > hg > isophonics-drupal-site
diff core/scripts/test-site.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/scripts/test-site.php Thu Feb 28 13:21:36 2019 +0000 @@ -0,0 +1,24 @@ +#!/usr/bin/env php +<?php + +/** + * @file + * A command line application to install Drupal for tests. + */ + +use Drupal\TestSite\TestSiteApplication; + +if (PHP_SAPI !== 'cli') { + return; +} + +// Use the PHPUnit bootstrap to prime an autoloader that works for test classes. +// Note we have to disable the SYMFONY_DEPRECATIONS_HELPER to ensure deprecation +// notices are not triggered. +putenv('SYMFONY_DEPRECATIONS_HELPER=disabled'); +require_once __DIR__ . '/../tests/bootstrap.php'; + +// The application version is 0.1.0 to indicate that it is for internal use only +// and not currently API. +$app = new TestSiteApplication('test-site', '0.1.0'); +$app->run();