Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / fixtures / KernelMissingDependentModuleMethodTest.php
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  * @group fixture
14  */
15 class KernelMissingDependentModuleMethodTest extends KernelTestBase {
16
17   /**
18    * This method should be skipped since it requires a module that is not found.
19    *
20    * @requires module module_does_not_exist
21    */
22   public function testRequiresModule() {
23     $this->fail('Running test with missing required module.');
24   }
25
26   /**
27    * Public access for checkRequirements() to avoid reflection.
28    */
29   public function publicCheckRequirements() {
30     return parent::checkRequirements();
31   }
32
33 }