function DatePopupAuthoredTestCase::testVariableCleanupAfterUninstall in Date Popup Authored 7
Tests variable cleanup after Date Popup Authored is uninstalled.
File
- tests/
date_popup_authored_format.test, line 169 - Simpletest case for Date Popup Authored.
Class
- DatePopupAuthoredTestCase
- Functionality tests for Date Popup Authored.
Code
function testVariableCleanupAfterUninstall() {
variable_set('date_popup_authored_enabled_page', 'foo');
variable_set('date_popup_authored_format_page', 'foo');
variable_set('date_popup_authored_year_range_page', 'foo');
module_disable(array(
'date_popup_authored',
));
drupal_uninstall_modules(array(
'date_popup_authored',
));
$this
->assertNull(variable_get('date_popup_authored_enabled_page'));
$this
->assertNull(variable_get('date_popup_authored_format_page'));
$this
->assertNull(variable_get('date_popup_authored_year_range_page'));
}