You are here

public function TestModuleHandler::moduleExists in Lightning Layout 8

Same name and namespace in other branches
  1. 8.2 modules/lightning_landing_page/tests/src/Kernel/InstallTest.php \Drupal\Tests\lightning_landing_page\Kernel\TestModuleHandler::moduleExists()

Determines whether a given module is enabled.

Parameters

string $module: The name of the module (without the .module extension).

Return value

bool TRUE if the module is both installed and enabled.

Overrides ModuleHandler::moduleExists

File

modules/lightning_landing_page/tests/src/Kernel/InstallTest.php, line 77

Class

TestModuleHandler
Fake module handler that always reports lightning_workflow is installed.

Namespace

Drupal\Tests\lightning_landing_page\Kernel

Code

public function moduleExists($module) {
  return $module === 'lightning_workflow' ? TRUE : parent::moduleExists($module);
}