function DependencyTest::testProjectNamespaceForDependencies
Same name in other branches
- 8.9.x core/modules/system/tests/src/Functional/Module/DependencyTest.php \Drupal\Tests\system\Functional\Module\DependencyTest::testProjectNamespaceForDependencies()
- 10 core/modules/system/tests/src/Functional/Module/DependencyTest.php \Drupal\Tests\system\Functional\Module\DependencyTest::testProjectNamespaceForDependencies()
- 11.x core/modules/system/tests/src/Functional/Module/DependencyTest.php \Drupal\Tests\system\Functional\Module\DependencyTest::testProjectNamespaceForDependencies()
Checks functionality of project namespaces for dependencies.
File
-
core/
modules/ system/ tests/ src/ Functional/ Module/ DependencyTest.php, line 23
Class
- DependencyTest
- Enable module without dependency enabled.
Namespace
Drupal\Tests\system\Functional\ModuleCode
public function testProjectNamespaceForDependencies() {
$edit = [
'modules[filter][enable]' => TRUE,
];
$this->drupalGet('admin/modules');
$this->submitForm($edit, 'Install');
// Enable module with project namespace to ensure nothing breaks.
$edit = [
'modules[system_project_namespace_test][enable]' => TRUE,
];
$this->drupalGet('admin/modules');
$this->submitForm($edit, 'Install');
$this->assertModules([
'system_project_namespace_test',
], TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.