Issue #3098475 by Berdir, catch, Gábor Hojtsy, TravisCarden, dww, xjm,...
Issue #3098475 by Berdir, catch, Gábor Hojtsy, TravisCarden, dww, xjm, benjifisher, alexpott, larowlan, webchick: Add more strict checking of hook_update_last_removed() and better explanation
$ret[$module]['warning']='<em>'.$module.'</em> module cannot be updated. Its schema version is '.$schema_version.'. Updates up to and including '.$last_removed.' have been removed in this release. In order to update <em>'.$module.'</em> module, you will first <a href="https://www.drupal.org/upgrade">need to upgrade</a> to the last version in which these updates were available.';
$ret[$module]['warning']='<em>'.$module.'</em> module cannot be updated. It contains an update numbered as '.\Drupal::CORE_MINIMUM_SCHEMA_VERSION.' which is reserved for the earliest installation of a module in Drupal '.\Drupal::CORE_COMPATIBILITY.', before any updates. In order to update <em>'.$module.'</em> module, you will need to install a version of the module with valid updates.';
'description'=>t('The installed version of the %module module is too old to update. Update to an intermediate version first (last removed version: @last_removed_version, installed version: @installed_version).',[
$assert_session->pageTextContains('Unsupported schema version: Update test with hook_update_last_removed() implementation');
$assert_session->pageTextContains('The installed version of the Update test with hook_update_last_removed() implementation module is too old to update. Update to an intermediate version first (last removed version: 8002, installed version: 8000).');
$assert_session->linkNotExists('Continue');
// Set the expected schema version, updates are successful now.