public function DependencyTest::testProjectNamespaceForDependencies in Drupal 9
Same name and namespace in other branches
- 8 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()
Checks functionality of project namespaces for dependencies.
File
- core/
modules/ system/ tests/ src/ Functional/ Module/ DependencyTest.php, line 22
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);
}