function FieldUpdatePathTestCase::setUp

Overrides UpgradePathTestCase::setUp

File

modules/simpletest/tests/upgrade/update.field.test, line 20

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',
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.