public function AggregatorUpdatePathTestCase::setUp in Drupal 7
Overrides DrupalWebTestCase::setUp() for upgrade testing.
Overrides UpgradePathTestCase::setUp
See also
DrupalWebTestCase::prepareDatabasePrefix()
DrupalWebTestCase::changeDatabasePrefix()
DrupalWebTestCase::prepareEnvironment()
File
- modules/
simpletest/ tests/ upgrade/ update.aggregator.test, line 16 - Tests schema changes in aggregator.module.
Class
- AggregatorUpdatePathTestCase
- @file Tests schema changes in aggregator.module.
Code
public function setUp() {
// Use the normal installation and add our feed data.
$path = drupal_get_path('module', 'simpletest') . '/tests/upgrade';
$this->databaseDumpFiles = array(
$path . '/drupal-7.bare.standard_all.database.php.gz',
$path . '/drupal-7.aggregator.database.php',
);
parent::setUp();
// Our test data only relies on aggregator.module.
$this
->uninstallModulesExcept(array(
'aggregator',
));
}