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.