protected function OptimizedbFunctionsTestCase::countCacheFormRows in OptimizeDB 7
Count rows in cache form table.
6 calls to OptimizedbFunctionsTestCase::countCacheFormRows()
- OptimizedbFunctionsTestCase::testButtonsExecutingCommands in ./
optimizedb.test - Testing module admin page buttons.
- OptimizedbFunctionsTestCase::testClearTable in ./
optimizedb.test - Test _optimizedb_clear_cache_form_table() function.
- OptimizedbFunctionsTestCase::testCronClearTable in ./
optimizedb.test - Test clear cache_form table in optimizedb_cron() function.
- OptimizedbFunctionsTestCase::testCronClearTablePeriodTime in ./
optimizedb.test - Testing, when set period of time clean-up table "cache_form" using Cron.
- OptimizedbFunctionsTestCase::testCronClearTablePeriodTimeEmpty in ./
optimizedb.test - Testing, when not set period of time clean-up table "cache_form" using Cron.
File
- ./
optimizedb.test, line 213 - Tests for optimizedb.module.
Class
- OptimizedbFunctionsTestCase
- Test the module functions.
Code
protected function countCacheFormRows() {
return (int) db_select('cache_form')
->countQuery()
->execute()
->fetchField();
}