];
$this->
config('update_test.settings'
)->
set('system_info',
$system_info)->
save();
$xml_mapping =
[ 'drupal' => '0.0',
'update_test_subtheme' => '1_0',
'update_test_basetheme' => '1_1-sec',
];
$this->
refreshUpdateStatus($xml_mapping);
$this->
assertSession()->
pageTextContains('Security update required!'
);
$this->updateProject = 'update_test_basetheme';
$this->
assertVersionUpdateLinks('Security update', '8.x-1.1'
);
} /**
* Tests the Update Manager module when one normal update is available.
*/
public function testNormalUpdateAvailable() { $assert_session =
$this->
assertSession();
// Ensure that the update check requires a token.
$this->
drupalGet('admin/reports/updates/check'
);
$assert_session->
statusCodeEquals(403
);