public function AggregatorUpdatePathTestCase::setUp
Overrides DrupalWebTestCase::setUp() for upgrade testing.
Overrides UpgradePathTestCase::setUp
See also
DrupalWebTestCase::prepareDatabasePrefix()
DrupalWebTestCase::changeDatabasePrefix()
DrupalWebTestCase::prepareEnvironment()
Archivo
- drupal-7.x/
modules/ simpletest/ tests/ upgrade/ update.aggregator.test, line 16 - Tests schema changes in aggregator.module.
Class
- AggregatorUpdatePathTestCase
- @file Tests schema changes in aggregator.module.
Código
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'));
}