Issue #3166561 by Matroskeen, ravi.shankar, andregp, mohit_aghera,...
Issue #3166561 by Matroskeen, ravi.shankar, andregp, mohit_aghera, golddragon007, ranjith_kumar_k_u: Comment being deleted instead of reassigned to Anonymous user
(cherry picked from commit 1b0253bf)
(cherry picked from commit 16fc07eb)
$this->assertSession()->pageTextContains('Are you sure you want to cancel your account?');
$this->assertSession()->pageTextContains('Your account will be removed and all account information deleted. All of your content will be assigned to the '.$this->config('user.settings')->get('anonymous').' user.');
// Confirm account cancellation.
$timestamp=time();
$this->submitForm([],'Confirm');
$this->assertSession()->pageTextContains('A confirmation request to cancel your account has been sent to your email address.');