1 backdrop_web_test_case.php protected BackdropWebTestCase::assertNoPattern($pattern, $message = '', $group = 'Other')

Will trigger a pass if the perl regex pattern is not present in raw content.

Parameters

$pattern: Perl regex to look for including the regex delimiters.

$message: Message to display.

$group: The group this message belongs to.

Return value

TRUE on pass, FALSE on fail.:

File

core/modules/simpletest/backdrop_web_test_case.php, line 3423

Class

BackdropWebTestCase
Test case for typical Backdrop tests.

Code

protected function assertNoPattern($pattern, $message = '', $group = 'Other') {
  if (!$message) {
    $message = t('Pattern "@pattern" not found', array('@pattern' => $pattern));
  }
  return $this->assert(!preg_match($pattern, $this->backdropGetContent()), $message, $group);
}