You are here

protected function UbercartOrderTestCase::assertHookMessage in Ubercart 7.3

Helper function for testing order entity CRUD hooks.

1 call to UbercartOrderTestCase::assertHookMessage()
UbercartOrderTestCase::testEntityHooks in uc_order/tests/uc_order.test
Tests order entity CRUD hooks.

File

uc_order/tests/uc_order.test, line 209
Tests for Ubercart orders.

Class

UbercartOrderTestCase
Tests for Ubercart orders.

Code

protected function assertHookMessage($text, $message = NULL, $group = 'Other') {
  if (!isset($message)) {
    $message = $text;
  }
  return $this
    ->assertTrue(array_search($text, $_SESSION['entity_crud_hook_test']) !== FALSE, $message, $group);
}