Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / simpletest / src / Tests / SkipRequiredModulesTest.php
1 <?php
2
3 namespace Drupal\simpletest\Tests;
4
5 use Drupal\simpletest\WebTestBase;
6
7 /**
8  * Tests if Simpletest-based tests are skipped based on module requirements.
9  *
10  * This test should always be skipped when TestDiscovery is used to discover it.
11  * This means that if you specify this test to run-tests.sh with --class or
12  * --file, this test will run and fail.
13  *
14  * @dependencies module_does_not_exist
15  *
16  * @group simpletest
17  *
18  * @todo Change or remove this test when Simpletest-based tests are able to skip
19  *       themselves based on requirements.
20  * @see https://www.drupal.org/node/1273478
21  */
22 class SkipRequiredModulesTest extends WebTestBase {
23
24   public function testModuleNotFound() {
25     $this->fail('This test should have been skipped during discovery.');
26   }
27
28 }