function MigrateUpgradeExecuteTestBase::doUpgradeAndIncremental
Same name in other branches
- 9 core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeExecuteTestBase::doUpgradeAndIncremental()
- 10 core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeExecuteTestBase::doUpgradeAndIncremental()
Executes an upgrade and then an incremental upgrade.
2 calls to MigrateUpgradeExecuteTestBase::doUpgradeAndIncremental()
- Upgrade6Test::testUpgradeAndIncremental in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ Upgrade6Test.php - Executes all steps of migrations upgrade.
- Upgrade7Test::testUpgradeAndIncremental in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d7/ Upgrade7Test.php - Executes all steps of migrations upgrade.
File
-
core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeExecuteTestBase.php, line 63
Class
- MigrateUpgradeExecuteTestBase
- Provides a base class for testing a complete upgrade via the UI.
Namespace
Drupal\Tests\migrate_drupal_ui\FunctionalCode
public function doUpgradeAndIncremental() {
// 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());
// Test incremental migration.
$this->createContentPostUpgrade();
$this->drupalGet('/upgrade');
$session->pageTextContains("An upgrade has already been performed on this site. To perform a new migration, create a clean and empty new install of Drupal {$this->destinationSiteVersion}. Rollbacks are not yet supported through the user interface.");
$this->submitForm([], 'Import new configuration and content from old site');
$this->submitForm($this->edits, 'Review upgrade');
$this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
$session->statusCodeEquals(200);
// Run the incremental migration and check the results.
$this->submitForm([], 'Perform upgrade');
$this->assertUpgrade($this->getEntityCountsIncremental());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.