protected function FeedsModuleInstallUninstallWebTest::uninstallFeeds in Feeds 7.2
Uninstalls Feeds.
2 calls to FeedsModuleInstallUninstallWebTest::uninstallFeeds()
- FeedsModuleInstallUninstallWebTest::testInstallationAndUninstallation in tests/
feeds_install.test - Test installation and uninstallation.
- FeedsModuleInstallUninstallWebTest::testJobsRemovalOnUninstall in tests/
feeds_install.test - Tests if scheduled jobs are removed when uninstalling Feeds.
File
- tests/
feeds_install.test, line 33
Class
- FeedsModuleInstallUninstallWebTest
- Tests module installation and uninstallation.
Code
protected function uninstallFeeds() {
module_disable(array(
'feeds_ui',
'feeds',
));
drupal_uninstall_modules(array(
'feeds_ui',
'feeds',
));
// Flush caches.
drupal_static_reset();
drupal_flush_all_caches();
// Assert that the modules are uninstalled.
$this
->assertEqual(1, db_query("SELECT COUNT(*) FROM {system} WHERE type = 'module' AND status = 0 AND name = 'feeds_ui' AND schema_version = -1")
->fetchField(), 'Feeds Admin UI is uninstalled.');
$this
->assertEqual(1, db_query("SELECT COUNT(*) FROM {system} WHERE type = 'module' AND status = 0 AND name = 'feeds' AND schema_version = -1")
->fetchField(), 'Feeds is uninstalled.');
}