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.
config('update.settings')
->set('fetch.url', url($url, array(
'absolute' => TRUE,
)))
->save();
// Save the map for update_test_mock_page() to use.
config('update_test.settings')
->set('xml_map', $xml_map)
->save();
// Manually check the update status.
$this
->drupalGet('admin/reports/updates/check');
}