Mercurial > hg > isophonics-drupal-site
view core/modules/simpletest/src/Tests/SkipRequiredModulesTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?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. * * Only WebTestBase tests are skipped by TestDiscovery. Other tests use the * PHPUnit @-require module annotation. * * @dependencies module_does_not_exist * * @group simpletest * @group WebTestBase * * @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.'); } }