You are here

function MessagingTestCase::assertUserRows in Messaging 7

Same name and namespace in other branches
  1. 6.4 tests/messaging_test_case.inc \MessagingTestCase::assertUserRows()

File

tests/messaging_test_case.inc, line 111

Class

MessagingTestCase

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);
}