1 update.test | UpdateTestContribCase::testUpdateContribBasic() |
Tests the basic functionality of a contrib module on the status report.
File
- core/
modules/ update/ tests/ update.test, line 301 - This file contains tests for the Update Manager module.
Class
Code
function testUpdateContribBasic() {
$system_info = array(
'#all' => array(
'version' => '1.0',
),
'aaa_update_test' => array(
'project' => 'aaa_update_test',
'version' => '1.x-1.0',
'hidden' => FALSE,
),
);
state_set('update_test_system_info', $system_info);
$this->refreshUpdateStatus(
array(
'backdrop' => '0',
'aaa_update_test' => '1_0',
)
);
$this->assertStandardTests();
$this->assertText(t('Up to date'));
$this->assertRaw('<h3>' . t('Modules') . '</h3>');
$this->assertNoText(t('Update available'));
$this->assertRaw(l(t('AAA Update test'), 'http://example.com/project/aaa_update_test'), 'Link to aaa_update_test project appears.');
}