$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
);
} /**
* Attempts to enable the Content Translation module without Language enabled.
*/
public function testEnableWithoutDependency() { // Attempt to enable Content Translation without Language enabled.
$edit =
[];
$edit['modules[content_translation][enable]'
] = 'content_translation';
$this->
drupalGet('admin/modules'
);
$this->
submitForm($edit, 'Install'
);