You are here

function NotificationsContentTests::countUserRows in Notifications 6.4

Same name and namespace in other branches
  1. 6 tests/notifications_content.test \NotificationsContentTests::countUserRows()
  2. 6.2 tests/notifications_content.test \NotificationsContentTests::countUserRows()
  3. 6.3 tests/notifications_content.test \NotificationsContentTests::countUserRows()
  4. 7 tests/notifications_content.test \NotificationsContentTests::countUserRows()
1 call to NotificationsContentTests::countUserRows()
NotificationsContentTests::testNotificationsContent in tests/notifications_content.test
Play with creating, retrieving, deleting a pair subscriptions

File

tests/notifications_content.test, line 283

Class

NotificationsContentTests

Code

function countUserRows($table, $uid = NULL) {
  return db_result(db_query("SELECT COUNT(*) FROM {" . $table . "} WHERE uid = %d", $uid));
}