Mercurial > hg > cmmr2012-drupal-site
annotate core/modules/simpletest/src/Tests/SkipRequiredModulesTest.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\simpletest\Tests; |
Chris@0 | 4 |
Chris@0 | 5 use Drupal\simpletest\WebTestBase; |
Chris@0 | 6 |
Chris@0 | 7 /** |
Chris@0 | 8 * Tests if Simpletest-based tests are skipped based on module requirements. |
Chris@0 | 9 * |
Chris@0 | 10 * This test should always be skipped when TestDiscovery is used to discover it. |
Chris@0 | 11 * This means that if you specify this test to run-tests.sh with --class or |
Chris@0 | 12 * --file, this test will run and fail. |
Chris@0 | 13 * |
Chris@0 | 14 * @dependencies module_does_not_exist |
Chris@0 | 15 * |
Chris@0 | 16 * @group simpletest |
Chris@0 | 17 * |
Chris@0 | 18 * @todo Change or remove this test when Simpletest-based tests are able to skip |
Chris@0 | 19 * themselves based on requirements. |
Chris@0 | 20 * @see https://www.drupal.org/node/1273478 |
Chris@0 | 21 */ |
Chris@0 | 22 class SkipRequiredModulesTest extends WebTestBase { |
Chris@0 | 23 |
Chris@0 | 24 public function testModuleNotFound() { |
Chris@0 | 25 $this->fail('This test should have been skipped during discovery.'); |
Chris@0 | 26 } |
Chris@0 | 27 |
Chris@0 | 28 } |