BrowserMissingDependentModuleTest.php 922 B

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