You are here

function PaymentTestUpdatePathWebTestCase::setUp in Payment 7

Overrides DrupalWebTestCase::setUp() for upgrade testing.

Overrides UpgradePathTestCase::setUp

See also

DrupalWebTestCase::prepareDatabasePrefix()

DrupalWebTestCase::changeDatabasePrefix()

DrupalWebTestCase::prepareEnvironment()

File

tests/payment_test/tests/PaymentTestUpdatePathWebTestCaseWithContent.test, line 22
Contains class PaymentTestUpgradePathWebTestCase.

Class

PaymentTestUpdatePathWebTestCase
Test Payment's update path.

Code

function setUp() {
  $this->profile = 'testing';
  $this->databaseDumpFiles = array(
    drupal_get_path('module', 'payment') . '/../payment-database-dump.php',
    drupal_get_path('module', 'payment') . '/../payment-database-dump-content.php',
  );
  parent::setUp();

  // Re-register the autoload functions that were unregistered by
  // UpdatePathTestCase::setUp(), because it also loads some module files
  // that work with classes.
  spl_autoload_register('drupal_autoload_class');
  spl_autoload_register('drupal_autoload_interface');
  registry_rebuild();
}