2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
$this->assertRaw(t('Are you sure you want to cancel the account %name?',['%name'=>$cancel_user->getUsername()]),'Confirmation form to cancel account displayed.');
$this->assertRaw(t('Disable the account and keep its content.').' '.t('This action cannot be undone.'),'Cannot select account cancellation method.');
$this->assertSession()->responseContains('Are you sure you want to cancel the account '.$cancel_user->getUsername().'?');
$this->assertSession()->responseContains('Disable the account and keep its content.This action cannot be undone.');
// Test that cancel confirmation gives an admin style message.