2017-09-25 12:07:02 +00:00
< ? php
namespace Drupal\KernelTests ;
2024-02-02 11:26:12 +00:00
@ trigger_error ( '\\Drupal\\FunctionalTests\\KernelMissingDependentModuleTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480' , E_USER_DEPRECATED );
2017-09-25 12:07:02 +00:00
/**
* A fixture test class with requires annotation .
*
* This is a fixture class for
* \Drupal\KernelTests\KernelTestBaseTest :: testRequiresModule () .
*
2023-02-06 11:41:06 +00:00
* This test class should not be discovered by run - tests . sh , phpstan or phpunit .
2017-09-25 12:07:02 +00:00
*
* @ requires module module_does_not_exist
* @ group fixture
2024-02-02 11:26:12 +00:00
*
* @ deprecated in drupal : 10.3 . 0 and is removed from drupal : 11.0 . 0. There is no
* replacement .
*
* @ see https :// www . drupal . org / node / 3418480
2017-09-25 12:07:02 +00:00
*/
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 ();
}
}