function DependencyTest::testProjectNamespaceForDependencies in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Module/DependencyTest.php \Drupal\system\Tests\Module\DependencyTest::testProjectNamespaceForDependencies()
Checks functionality of project namespaces for dependencies.
File
- core/
modules/ system/ src/ Tests/ Module/ DependencyTest.php, line 20 - Contains \Drupal\system\Tests\Module\DependencyTest.
Class
- DependencyTest
- Enable module without dependency enabled.
Namespace
Drupal\system\Tests\ModuleCode
function testProjectNamespaceForDependencies() {
$edit = array(
'modules[Core][filter][enable]' => TRUE,
);
$this
->drupalPostForm('admin/modules', $edit, t('Install'));
// Enable module with project namespace to ensure nothing breaks.
$edit = array(
'modules[Testing][system_project_namespace_test][enable]' => TRUE,
);
$this
->drupalPostForm('admin/modules', $edit, t('Install'));
$this
->assertModules(array(
'system_project_namespace_test',
), TRUE);
}