public function ModuleHandlerTest::testGetModuleDirectories in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::testGetModuleDirectories()
@covers ::getModuleDirectories
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ModuleHandlerTest.php, line 514 - Contains \Drupal\Tests\Core\Extension\ModuleHandlerTest.
Class
- ModuleHandlerTest
- @coversDefaultClass \Drupal\Core\Extension\ModuleHandler @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
public function testGetModuleDirectories() {
$this->moduleHandler
->setModuleList(array());
$this->moduleHandler
->addModule('module', 'place');
$this
->assertEquals(array(
'module' => $this->root . '/place',
), $this->moduleHandler
->getModuleDirectories());
}