Error message
You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).function ModuleDependencyTestCase::testProjectNamespaceForDependencies
Checks functionality of project namespaces for dependencies.
File
-
modules/
system/ system.test, line 395
Class
- ModuleDependencyTestCase
- Test module dependency functionality.
Code
function testProjectNamespaceForDependencies() {
// Enable module with project namespace to ensure nothing breaks.
$edit = array(
'modules[Testing][system_project_namespace_test][enable]' => TRUE,
);
$this->drupalPost ('admin/modules', $edit, t ('Save configuration'));
$this->assertModules (array(
'system_project_namespace_test',
), TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.