You are here

function SearchByPageExtraUsersTest::howManyUsers in Search by Page 7

1 call to SearchByPageExtraUsersTest::howManyUsers()
SearchByPageExtraUsersTest::testReindexingUsers in tests/search_by_page.test
Tests that no new users are created when reindexing.

File

tests/search_by_page.test, line 1051
Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com

Class

SearchByPageExtraUsersTest
Tests that no extra Search by Page indexing users are created.

Code

function howManyUsers() {
  $query = db_select('users', 'u');
  $query
    ->addExpression('count(*)');
  return $query
    ->execute()
    ->fetchField();
}