function DatabaseTemporaryQueryTestCase::countTableRows

7.x database_test.test DatabaseTemporaryQueryTestCase::countTableRows($table_name)

Return the number of rows of a table.

1 call to DatabaseTemporaryQueryTestCase::countTableRows()
DatabaseTemporaryQueryTestCase::testTemporaryQuery in drupal-7.x/modules/simpletest/tests/database_test.test
Confirm that temporary tables work and are limited to one request.

File

drupal-7.x/modules/simpletest/tests/database_test.test, line 3070

Class

DatabaseTemporaryQueryTestCase
Temporary query tests.

Code

function countTableRows($table_name) {
  return db_select($table_name)->countQuery()->execute()->fetchField();
}