Mercurial > hg > isophonics-drupal-site
annotate core/scripts/test-site.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@17 | 1 #!/usr/bin/env php |
Chris@17 | 2 <?php |
Chris@17 | 3 |
Chris@17 | 4 /** |
Chris@17 | 5 * @file |
Chris@17 | 6 * A command line application to install Drupal for tests. |
Chris@17 | 7 */ |
Chris@17 | 8 |
Chris@17 | 9 use Drupal\TestSite\TestSiteApplication; |
Chris@17 | 10 |
Chris@17 | 11 if (PHP_SAPI !== 'cli') { |
Chris@17 | 12 return; |
Chris@17 | 13 } |
Chris@17 | 14 |
Chris@17 | 15 // Use the PHPUnit bootstrap to prime an autoloader that works for test classes. |
Chris@17 | 16 // Note we have to disable the SYMFONY_DEPRECATIONS_HELPER to ensure deprecation |
Chris@17 | 17 // notices are not triggered. |
Chris@17 | 18 putenv('SYMFONY_DEPRECATIONS_HELPER=disabled'); |
Chris@17 | 19 require_once __DIR__ . '/../tests/bootstrap.php'; |
Chris@17 | 20 |
Chris@17 | 21 // The application version is 0.1.0 to indicate that it is for internal use only |
Chris@17 | 22 // and not currently API. |
Chris@17 | 23 $app = new TestSiteApplication('test-site', '0.1.0'); |
Chris@17 | 24 $app->run(); |