diff --git a/core/modules/action/src/Tests/BulkFormTest.php b/core/modules/action/src/Tests/BulkFormTest.php index 026bfe9..88892c4 100644 --- a/core/modules/action/src/Tests/BulkFormTest.php +++ b/core/modules/action/src/Tests/BulkFormTest.php @@ -150,7 +150,8 @@ public function testBulkForm() { $this->drupalPostForm(NULL, $edit, t('Apply')); // Make sure we don't show an action message while we are still on the // confirmation page. - $this->assertNoText(t('Delete content was applied to 5 items.')); + $errors = $this->xpath('//div[contains(@class, "messages--status")]'); + $this->assertFalse($errors, 'No action message shown.'); $this->drupalPostForm(NULL, array(), t('Delete')); $this->assertText(t('Deleted 5 posts.')); // Check if we got redirected to the original page.