Refreshes the update status based on the desired available update scenario.
$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.
$url: (optional) A string containing the URL to fetch update data from. Defaults to 'update-test'.
protected function refreshUpdateStatus($xml_map, $url = 'update-test') {
// Tell the Update Manager 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');
}