You are here

public function FeedsModuleInstallUninstallWebTest::testInstallationAndUninstallation in Feeds 7.2

Test installation and uninstallation.

File

tests/feeds_install.test, line 49

Class

FeedsModuleInstallUninstallWebTest
Tests module installation and uninstallation.

Code

public function testInstallationAndUninstallation() {
  $this
    ->assertTrue(module_exists('feeds'));
  $this
    ->assertTrue(module_exists('feeds_ui'));

  // Ensure the variable 'cache_class_cache_feeds_http' is set.
  $this
    ->assertEqual('FeedsHTTPCache', variable_get('cache_class_cache_feeds_http'));

  // Uninstall module.
  $this
    ->uninstallFeeds();

  // Ensure the variable 'cache_class_cache_feeds_http' is removed.
  $this
    ->assertNull(variable_get('cache_class_cache_feeds_http'), 'The variable "cache_class_cache_feeds_http" is removed.');
}