Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / scripts / test-site.php
diff --git a/web/core/scripts/test-site.php b/web/core/scripts/test-site.php
new file mode 100644 (file)
index 0000000..1244f4b
--- /dev/null
@@ -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();