public function TriggerUpdatePathTestCase::setUp

Overrides DrupalWebTestCase::setUp() for upgrade testing.

Overrides UpgradePathTestCase::setUp

See also

DrupalWebTestCase::prepareDatabasePrefix()

DrupalWebTestCase::changeDatabasePrefix()

DrupalWebTestCase::prepareEnvironment()

File

drupal/modules/simpletest/tests/upgrade/update.trigger.test, line 19
Provides upgrade path tests for the Trigger module.

Class

TriggerUpdatePathTestCase
Tests the Trigger 7.0 -> 7.x upgrade path.

Code

public function setUp() {

  // Use the filled upgrade path and our trigger data.
  $this->databaseDumpFiles = array(
    drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.filled.standard_all.database.php.gz',
    drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.trigger.database.php',
  );
  parent::setUp();

  // Our test data includes node and comment trigger assignments.
  $this
    ->uninstallModulesExcept(array(
    'comment',
    'trigger',
  ));
}