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