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 ModuleUnitTest::testSystemModulesNullVersion
Test system_modules() with a module with a dependency with a null version.
File
-
modules/
simpletest/ tests/ module.test, line 132
Class
- ModuleUnitTest
- Unit tests for the module API.
Code
function testSystemModulesNullVersion() {
module_enable (array(
'system_requires_null_version_test',
), FALSE);
$this->resetAll ();
$admin = $this->drupalCreateUser (array(
'administer modules',
));
$this->drupalLogin ($admin);
$this->drupalGet ('admin/modules');
$this->assertText ('System null version test', 'Module admin UI listed dependency with null version successfully.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.