You are here

private function ForumAccessTestCase::assertTextArrayHelper in Forum Access 6

The array version of the function assertTextHelper

2 calls to ForumAccessTestCase::assertTextArrayHelper()
ForumAccessTestCase::assertNoTextArray in ./forum_access.test
The array version of the function assertNoText
ForumAccessTestCase::assertTextArray in ./forum_access.test
The array version of the function assertText

File

./forum_access.test, line 1421
Test file for forum_access.module.

Class

ForumAccessTestCase
This is the base class for forum access testing.

Code

private function assertTextArrayHelper($text, $message, $group, $not_exists) {
  if ($this->plainTextContent === FALSE) {
    $this->plainTextContent = filter_xss($this->content, array());
  }
  if (!$message) {
    $message = !$not_exists ? t('"@text" found', array(
      '@text' => $text,
    )) : t('"@text" not found', array(
      '@text' => $text,
    ));
  }
  return $this
    ->assert($not_exists == ($this
    ->strpos_array($this->plainTextContent, $text) === FALSE), $message, $group);
}