Pull merge.
[yaffs-website] / web / core / tests / fixtures / BrowserMissingDependentModuleMethodTest.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::testMethodRequiresModule().
12  *
13  * This test class should not be discovered by run-tests.sh or phpunit.
14  *
15  * @group fixture
16  */
17 class BrowserMissingDependentModuleMethodTest extends BrowserTestBase {
18
19   /**
20    * This method should be skipped since it requires a module that is not found.
21    *
22    * @requires module module_does_not_exist
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 }