comparison core/tests/fixtures/BrowserMissingDependentModuleTest.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\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 }