function GenericTestExistsTest::testGenericTestExists
Tests that the Generic module test exists for all modules.
@dataProvider coreModuleListDataProvider
File
-
core/
tests/ Drupal/ Tests/ Core/ Extension/ GenericTestExistsTest.php, line 29
Class
- GenericTestExistsTest
- Tests that the Generic module test exists for all modules.
Namespace
Drupal\Tests\Core\ExtensionCode
public function testGenericTestExists(string $module_name) : void {
if (in_array($module_name, $this->modulesNoTest, TRUE)) {
$this->markTestSkipped();
}
$this->assertFileExists("{$this->root}/core/modules/{$module_name}/tests/src/Functional/GenericTest.php");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.