Version 1
[yaffs-website] / web / core / modules / simpletest / tests / src / Functional / MissingDependentModuleUnitTest.php
diff --git a/web/core/modules/simpletest/tests/src/Functional/MissingDependentModuleUnitTest.php b/web/core/modules/simpletest/tests/src/Functional/MissingDependentModuleUnitTest.php
new file mode 100644 (file)
index 0000000..acd55dd
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\Tests\simpletest\Functional;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * This test should not load since it requires a module that is not found.
+ *
+ * @group simpletest
+ * @dependencies simpletest_missing_module
+ */
+class MissingDependentModuleUnitTest extends BrowserTestBase {
+
+  /**
+   * Ensure that this test will not be loaded despite its dependency.
+   */
+  public function testFail() {
+    $this->fail('Running test with missing required module.');
+  }
+
+}