protected function assertSecurityUpdates($project_path_part, array
$expected_security_releases,
$expected_update_message_type,
$update_element_css_locator) { $assert_session =
$this->
assertSession();
$page =
$this->
getSession()->
getPage();
$this->
standardTests();
$assert_session->
elementTextNotContains('css',
$update_element_css_locator, 'Not supported'
);
$all_security_release_urls =
array_map(function D
$link) { return $link->
getAttribute('href'
);
},
$page->
findAll('css', "
$update_element_css_locator .version-security a[href$='-release']"
));
if ($expected_security_releases) { $expected_release_urls =
[];
if ($expected_update_message_type ===
static::SECURITY_UPDATE_REQUIRED
) { $assert_session->
elementTextNotContains('css',
$update_element_css_locator, 'Update available'
);
$assert_session->
elementTextContains('css',
$update_element_css_locator, 'Security update required!'
);
// Verify that the error icon is found.
$assert_session->
responseContains('error.svg'
);
}