@@ -281,8 +280,8 @@ public function testCommentedTranslationDeletion(): void {
];
$this->drupalGet('admin/content/comment');
$this->submitForm($edit,'Update');
$this->assertSession()->responseContains(newFormattableMarkup('@label (Original translation) - <em>The following comment translations will be deleted:</em>',['@label'=>$comment1->label()]));
$this->assertSession()->responseContains(newFormattableMarkup('@label (Original translation) - <em>The following comment translations will be deleted:</em>',['@label'=>$comment2->label()]));
$this->assertSession()->responseContains($comment1->label()." (Original translation) - <em>The following comment translations will be deleted:</em>");
$this->assertSession()->responseContains($comment2->label()." (Original translation) - <em>The following comment translations will be deleted:</em>");
$this->assertSession()->responseContains(newFormattableMarkup('@sender_name (@sender_email) sent @recipient_name an email.',$placeholders));
$this->assertSession()->responseContains($this->webUser->getAccountName()." (".HTML::escape($this->webUser->getEmail()).") sent ".$this->contactUser->getAccountName()." an email.");
// Ensure an unescaped version of the email does not exist anywhere.
$this->assertStringContainsString((string)$expected,$output,"Formatted date field using datetime_time_ago format displayed as $expected in $timezone.");
$this->assertStringContainsString($expected,$output,"Formatted date field using datetime_time_ago format displayed as $expected in $timezone.");
// Verify that the 'datetime_time_ago' formatter works for intervals in
// the future. First update the test entity so that the date difference
@@ -211,11 +214,15 @@ public function testDateField(): void {
$this->assertStringContainsString((string)$expected,$output,"Formatted date field using datetime_time_ago format displayed as $expected in $timezone.");
$this->assertStringContainsString($expected,$output,"Formatted date field using datetime_time_ago format displayed as $expected in $timezone.");
}
}
@@ -341,11 +348,15 @@ public function testDatetimeField(): void {