function UpgradeTest::testUpgrade
Executes an upgrade.
File
- 
              core/modules/ aggregator/ tests/ src/ Functional/ migrate_drupal_ui/ d6/ UpgradeTest.php, line 179 
Class
- UpgradeTest
- Tests Drupal 6 upgrade using the migrate UI.
Namespace
Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d6Code
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->useTestMailCollector();
  $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.
