Mercurial > hg > isophonics-drupal-site
comparison core/tests/fixtures/KernelMissingDependentModuleTest.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\KernelTests; | |
4 | |
5 /** | |
6 * A fixture test class with requires annotation. | |
7 * | |
8 * This is a fixture class for | |
9 * \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule(). | |
10 * | |
11 * This test class should not be discovered by run-tests.sh or phpunit. | |
12 * | |
13 * @requires module module_does_not_exist | |
14 * @group fixture | |
15 */ | |
16 class KernelMissingDependentModuleTest extends KernelTestBase { | |
17 | |
18 /** | |
19 * Placeholder test method. | |
20 * | |
21 * Depending on configuration, PHPUnit might fail a test if it has no test | |
22 * methods, so we must provide one. This method should never be executed. | |
23 */ | |
24 public function testRequiresModule() { | |
25 $this->fail('Running test with missing required module.'); | |
26 } | |
27 | |
28 /** | |
29 * Public access for checkRequirements() to avoid reflection. | |
30 */ | |
31 public function publicCheckRequirements() { | |
32 return parent::checkRequirements(); | |
33 } | |
34 | |
35 } |