public function CleanerTestBase::cleanerExecute in Cleaner 7
Execute hook_cleaner_run().
3 calls to CleanerTestBase::cleanerExecute()
- CleanerTestCacheClearing::testCacheClearing in tests/
cleaner_cache.test - Test clearing caches.
- CleanerTestFilesClearing::testFilesClearing in tests/
cleaner_files.test - Test clearing CSS/JS files.
- CleanerTestWatchdogClearing::testWatchdogClearing in tests/
cleaner_watchdog.test - Test clearing Watchdog logs.
File
- tests/
cleaner_base.test, line 66 - File with a base class for the Cleaner test cases.
Class
- CleanerTestBase
- Class CleanerTestBase.
Code
public function cleanerExecute() {
// Check if hook_cleaner_run() exist.
$this
->assertTrue(module_hook('cleaner', 'cleaner_run'), 'Hook - hook_cleaner_run() exist!');
// Execute hook_cleaner_run().
module_invoke_all('cleaner_run');
}