Version 1
[yaffs-website] / web / core / modules / simpletest / src / Tests / WebTestBaseInstallTest.php
diff --git a/web/core/modules/simpletest/src/Tests/WebTestBaseInstallTest.php b/web/core/modules/simpletest/src/Tests/WebTestBaseInstallTest.php
new file mode 100644 (file)
index 0000000..857e3a3
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\simpletest\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Tests the test-specifics customisations done in the installation.
+ *
+ * @group simpletest
+ */
+class WebTestBaseInstallTest extends WebTestBase {
+
+  /**
+   * Tests the Drupal install done in \Drupal\simpletest\WebTestBase::setUp().
+   */
+  public function testInstall() {
+    $htaccess_filename = $this->getTempFilesDirectory() . '/.htaccess';
+    $this->assertTrue(file_exists($htaccess_filename), "$htaccess_filename exists");
+  }
+
+}