You are here

function SearchByPageExtraUsersTest::howManyUsers in Search by Page 8

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

File

tests/src/Functional/search_by_page.test, line 720
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.

Namespace

Drupal\Tests\search_by_page\Functional

Code

function howManyUsers() {
  $query = \Drupal::database()
    ->select('users', 'u');
  $query
    ->addExpression('count(*)');
  return $query
    ->execute()
    ->fetchField();
}