function GenericModuleTestBase::getModule

Same name in other branches
  1. 11.x core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php \Drupal\Tests\system\Functional\Module\GenericModuleTestBase::getModule()

Get the module name.

Return value

string The module to test.

2 calls to GenericModuleTestBase::getModule()
GenericModuleTestBase::testModuleGenericIssues in core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php
Checks some generic things about a module.
GenericTest::setUp in core/modules/node/tests/src/Functional/GenericTest.php

File

core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php, line 33

Class

GenericModuleTestBase
Runs a series of generic tests for one module.

Namespace

Drupal\Tests\system\Functional\Module

Code

protected function getModule() : string {
    return explode('\\', get_class($this))[2];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.