function ModuleHandlerTest::testIsLoaded
Tests isLoaded accessor.
@legacy-covers ::isLoaded
File
-
core/
tests/ Drupal/ Tests/ Core/ Extension/ ModuleHandlerTest.php, line 160
Class
Namespace
Drupal\Tests\Core\ExtensionCode
public function testIsLoaded() : void {
$module_handler = $this->getModuleHandler(loadAll: FALSE);
$this->assertFalse($module_handler->isLoaded());
$module_handler->loadAll();
$this->assertTrue($module_handler->isLoaded());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.