You are here

public function SimpleNewsUpgradePath62TestCase::setUp in Simplenews 7.2

Same name and namespace in other branches
  1. 7 tests/simplenews.test \SimpleNewsUpgradePath62TestCase::setUp()

Overrides DrupalWebTestCase::setUp() for upgrade testing.

Overrides SimpleNewsUpgradePathTestCase::setUp

See also

DrupalWebTestCase::prepareDatabasePrefix()

DrupalWebTestCase::changeDatabasePrefix()

DrupalWebTestCase::prepareEnvironment()

File

tests/simplenews.test, line 2142
Simplenews test functions.

Class

SimpleNewsUpgradePath62TestCase
Upgrade test from 6.x-2.x

Code

public function setUp() {

  // Path to the database dump files.
  $this->databaseDumpFiles = array(
    drupal_get_path('module', 'simplenews') . '/tests/d6_simplenews_62.php',
  );
  parent::setUp();

  // Use the test mail class instead of the default mail handler class.
  $this
    ->variable_set('mail_system', array(
    'default-system' => 'TestingMailSystem',
  ));
}