public function FieldUpdatePathTestCase::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.field.test, line 20
Provides update path tests for the Field module.

Class

FieldUpdatePathTestCase
Tests the Field 7.0 -> 7.x update path.

Code

public function setUp() {

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

  // Our test data includes poll extra field settings.
  $this
    ->uninstallModulesExcept(array(
    'field',
    'poll',
  ));
}