You are here

function NotificationsTestCase::assertUserRows in Notifications 6.2

Same name and namespace in other branches
  1. 6.3 tests/notifications_test_case.inc \NotificationsTestCase::assertUserRows()
2 calls to NotificationsTestCase::assertUserRows()
NotificationsLiteTests::sendLiteMessages in tests/notifications_lite.test
NotificationsLiteTests::testNotificationsLite in tests/notifications_lite.test
Test simple sending cases

File

tests/notifications_test_case.inc, line 51
Base class for Notifications Tests

Class

NotificationsTestCase
@file Base class for Notifications Tests

Code

function assertUserRows($table, $target, $uid, $message = NULL) {
  $message = $message ? $message : "There are {$target} rows in table {$table} for user {$uid}";
  $this
    ->assertTableRows($table, $target, array(
    'uid' => $uid,
  ), $message);
}