You are here

public function SimpleNewsUpgradePath61TestCase::testSimplenewsUpgrade in Simplenews 7.2

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

Test a successful upgrade.

File

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

Class

SimpleNewsUpgradePath61TestCase
Upgrade test from 6.x-1.x

Code

public function testSimplenewsUpgrade() {
  $this
    ->prepareUpgradePath();

  // Load necessary classes manually. Only necessary for the test itself.
  $this
    ->assertTrue($this
    ->performUpgrade(), t('Upgraded successfully.'));
  $this
    ->assertUpgradePath();
}