| 7 update.test | protected UpdateTestHelper::refreshUpdateStatus($xml_map, $url = 'update-test') |
| 8 update.test | protected UpdateTestHelper::refreshUpdateStatus($xml_map, $url = 'update-test') |
Refresh the update status based on the desired available update scenario.
Parameters
$xml_map: Array that maps project names to availability scenarios to fetch. The key '#all' is used if a project-specific mapping is not defined.
See also
File
- modules/
update/ update.test, line 35 - Tests for update.module.
Code
protected function refreshUpdateStatus($xml_map, $url = 'update-test') {
// Tell update module to fetch from the URL provided by update_test module.
variable_set('update_fetch_url', url($url, array('absolute' => TRUE)));
// Save the map for update_test_mock_page() to use.
variable_set('update_test_xml_map', $xml_map);
// Manually check the update status.
$this->drupalGet('admin/reports/updates/check');
}
Login or register to post comments