Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- Add a new assertion trait (
assertErrorMessage()
) intotests/src/Traits/CloudAssertionTrait.php
protected function assertErrorMessage() { $this->assertSession()->statusCodeEquals(200); $this->assertSession()->pageTextNotContains($this->t('Warning message')); $this->assertSession()->pageTextContains($this->t('Error message')); }
Comment | File | Size | Author |
---|---|---|---|
#2 | 3159394-2.patch | 5.69 KB | liuchanggang |
|
Comments
Comment #2
liuchanggang CreditAttribution: liuchanggang commentedComment #3
yas@liuchanggang
Thank you for refactoring. The patch looks good to me. I'll merge the patch to
8.x-1.x
and8.x-2.x
and close this issue asFixed
.Comment #6
yasComment #7
yas