Mercurial > hg > isophonics-drupal-site
view core/tests/fixtures/KernelMissingDependentModuleTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\KernelTests; /** * A fixture test class with requires annotation. * * This is a fixture class for * \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule(). * * This test class should not be discovered by run-tests.sh or phpunit. * * @requires module module_does_not_exist * @group fixture */ class KernelMissingDependentModuleTest extends KernelTestBase { /** * Placeholder test method. * * Depending on configuration, PHPUnit might fail a test if it has no test * methods, so we must provide one. This method should never be executed. */ public function testRequiresModule() { $this->fail('Running test with missing required module.'); } /** * Public access for checkRequirements() to avoid reflection. */ public function publicCheckRequirements() { return parent::checkRequirements(); } }