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