function UpgradeTest::testUpgrade

Same name in this branch
  1. 11.x core/modules/statistics/tests/src/Functional/migrate_drupal/d6/UpgradeTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d6\UpgradeTest::testUpgrade()
Same name in other branches
  1. 9 core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d6/UpgradeTest.php \Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d6\UpgradeTest::testUpgrade()
  2. 9 core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d7/UpgradeTest.php \Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d7\UpgradeTest::testUpgrade()
  3. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d6/UpgradeTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d6\UpgradeTest::testUpgrade()
  4. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d7/UpgradeTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d7\UpgradeTest::testUpgrade()

Executes all steps of migrations upgrade.

File

core/modules/statistics/tests/src/Functional/migrate_drupal/d7/UpgradeTest.php, line 162

Class

UpgradeTest
Tests Drupal 7 upgrade using the migrate UI.

Namespace

Drupal\Tests\statistics\Functional\migrate_drupal\d7

Code

public function testUpgrade() {
    // Start the upgrade process.
    $this->submitCredentialForm();
    $session = $this->assertSession();
    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $session->statusCodeEquals(200);
    // Test the review form.
    $this->assertReviewForm();
    $this->submitForm([], 'Perform upgrade');
    $this->assertUpgrade($this->getEntityCounts());
}

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