You are here

protected function UbercartTestHelper::assertAjaxText in Ubercart 7.3

Assert that the specified text is present in the plain text version of the html that would be inserted into the page if this ajax response were executed.

Parameters

$ajax: The ajax response to test. Must be an array of ajax commands as returned by drupalPostAjax().

$text: The text to search for.

$message: The assertion message.

File

uc_store/tests/uc_store.test, line 239
Test functionality provided by uc_store.

Class

UbercartTestHelper
Defines a base helper class for Ubercart tests.

Code

protected function assertAjaxText($ajax, $text, $message = FALSE) {
  $this
    ->assertAjaxHelper($ajax, $text, $message, FALSE, TRUE);
}