function InactiveUserTest::inactiveUserSettings in Inactive User 7
Same name and namespace in other branches
- 6 inactive_user.test \InactiveUserTest::inactiveUserSettings()
Configure Inactive user module
4 calls to InactiveUserTest::inactiveUserSettings()
- InactiveUserTest::testInactiveUserBlocking in ./
inactive_user.test - Check inactive user blocking and notifications are working
- InactiveUserTest::testInactiveUserDeleting in ./
inactive_user.test - Check inactive user deleting and notifications are working
- InactiveUserTest::testInactiveUserNotification in ./
inactive_user.test - Check inactive user and administrator notifications are working
- InactiveUserTest::testInactiveUserWithContentDeleting in ./
inactive_user.test - Check inactive user (with content) deleting and notifications are working
File
- ./
inactive_user.test, line 436 - Test the basic functions of the Inactive User module.
Class
- InactiveUserTest
- Inactive user module testcase.
Code
function inactiveUserSettings($options = array()) {
$this
->drupalPost('admin/people/inactive-user', $options, t('Save configuration'));
$this
->assertRaw(t('The configuration options have been saved.'), t('Inactive user settings saved.'));
foreach ($options as $option => $value) {
$this
->assertEqual($value, variable_get($option, ''), t('Inactive user setting %option successfully saved.', array(
'%option' => $option,
)));
}
}