You are here

protected static function CleanerTestWatchdogClearing::getWatchdogsCount in Cleaner 7

Get count of watchdog's rows.

Return value

int Count of watchdog's rows.

1 call to CleanerTestWatchdogClearing::getWatchdogsCount()
CleanerTestWatchdogClearing::testWatchdogClearing in tests/cleaner_watchdog.test
Test clearing Watchdog logs.

File

tests/cleaner_watchdog.test, line 61
Test Clearing Watchdog logs.

Class

CleanerTestWatchdogClearing
Class CleanerTestWatchdogClearing.

Code

protected static function getWatchdogsCount() {
  return db_query("SELECT COUNT(*) FROM {watchdog}")
    ->fetchField();
}