Mercurial > hg > cmmr2012-drupal-site
comparison core/tests/Drupal/Tests/WebAssert.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
416 public function assertEscaped($raw) { | 416 public function assertEscaped($raw) { |
417 $this->responseContains(Html::escape($raw)); | 417 $this->responseContains(Html::escape($raw)); |
418 } | 418 } |
419 | 419 |
420 /** | 420 /** |
421 * Checks that page HTML (response content) contains text. | |
422 * | |
423 * @param string|object $text | |
424 * Text value. Any non-string value will be cast to string. | |
425 * | |
426 * @throws ExpectationException | |
427 */ | |
428 public function responseContains($text) { | |
429 parent::responseContains((string) $text); | |
430 } | |
431 | |
432 /** | |
433 * Checks that page HTML (response content) does not contains text. | |
434 * | |
435 * @param string|object $text | |
436 * Text value. Any non-string value will be cast to string. | |
437 * | |
438 * @throws ExpectationException | |
439 */ | |
440 public function responseNotContains($text) { | |
441 parent::responseNotContains((string) $text); | |
442 } | |
443 | |
444 /** | |
421 * Asserts a condition. | 445 * Asserts a condition. |
422 * | 446 * |
423 * The parent method is overridden because it is a private method. | 447 * The parent method is overridden because it is a private method. |
424 * | 448 * |
425 * @param bool $condition | 449 * @param bool $condition |