public function CleanerTestBase::cleanerSettings in Cleaner 7
Cleaner settings handler.
Parameters
array $conf: An associative array with a configure data. Example of $conf array: array( 'cleaner_cron' => 1, 'cleaner_clear_cache' => 1, 'cleaner_empty_watchdog' => 0, 'cleaner_clean_sessions' => 1, 'cleaner_clean_cssdir' => 1, 'cleaner_clean_jsdir' => 1, 'cleaner_optimize_db' => 1, ).
3 calls to CleanerTestBase::cleanerSettings()
- 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 54 - File with a base class for the Cleaner test cases.
Class
- CleanerTestBase
- Class CleanerTestBase.
Code
public function cleanerSettings(array $conf) {
// Set a configurations for Cleaner.
$this
->drupalPost('admin/config/system/cleaner', $conf, t('Save configuration'));
// Assert response.
$this
->assertResponse(200);
// Assert "saving" text.
$this
->assertText('The configuration options have been saved.', 'Settings successfully saved.');
}