$this->assertText(t('Are you sure you want to cancel your account?'),'Confirmation form to cancel account displayed.');
$this->assertRaw(t('Your account will be removed and all account information deleted. All of your content will be assigned to the %anonymous-name user.',array('%anonymous-name'=>$this->config('user.settings')->get('anonymous'))),'Informs that all content will be attributed to anonymous account.');
$this->assertText(t('A confirmation request to cancel your account has been sent to your email address.'),'Account cancellation request mailed message displayed.');
$this->assertTrue(($test_node->getOwnerId()==0&&$test_node->isPublished()),'Node '.$test_node->id().' of the user has been attributed to anonymous user.');