Mercurial > hg > isophonics-drupal-site
diff core/modules/simpletest/src/Tests/SkipRequiredModulesTest.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | af1871eacc83 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/simpletest/src/Tests/SkipRequiredModulesTest.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,28 @@ +<?php + +namespace Drupal\simpletest\Tests; + +use Drupal\simpletest\WebTestBase; + +/** + * Tests if Simpletest-based tests are skipped based on module requirements. + * + * This test should always be skipped when TestDiscovery is used to discover it. + * This means that if you specify this test to run-tests.sh with --class or + * --file, this test will run and fail. + * + * @dependencies module_does_not_exist + * + * @group simpletest + * + * @todo Change or remove this test when Simpletest-based tests are able to skip + * themselves based on requirements. + * @see https://www.drupal.org/node/1273478 + */ +class SkipRequiredModulesTest extends WebTestBase { + + public function testModuleNotFound() { + $this->fail('This test should have been skipped during discovery.'); + } + +}