Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / fixtures / BrowserMissingDependentModuleTest.php
1 <?php
2
3 namespace Drupal\FunctionalTests;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * A fixture test class with requires annotation.
9  *
10  * This is a fixture class for
11  * \Drupal\FunctionalTests\BrowserTestBaseTest::testRequiresModule().
12  *
13  * This test class should not be discovered by run-tests.sh or phpunit.
14  *
15  * @requires module module_does_not_exist
16  * @group fixture
17  */
18 class BrowserMissingDependentModuleTest extends BrowserTestBase {
19
20   /**
21    * Placeholder test method.
22    *
23    * Depending on configuration, PHPUnit might fail a test if it has no test
24    * methods, so we must provide one. This method should never be executed.
25    */
26   public function testRequiresModule() {
27     $this->fail('Running test with missing required module.');
28   }
29
30   /**
31    * Public access for checkRequirements() to avoid reflection.
32    */
33   public function publicCheckRequirements() {
34     return parent::checkRequirements();
35   }
36
37 }