You are here

public function MigrateUpgradeReviewPageTestBase::testMigrateUpgradeReviewPage in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/MigrateUpgradeReviewPageTestBase.php \Drupal\Tests\commerce_migrate\Functional\MigrateUpgradeReviewPageTestBase::testMigrateUpgradeReviewPage()
  2. 3.0.x tests/src/Functional/MigrateUpgradeReviewPageTestBase.php \Drupal\Tests\commerce_migrate\Functional\MigrateUpgradeReviewPageTestBase::testMigrateUpgradeReviewPage()

Tests the migrate upgrade review form.

Overrides MultilingualReviewPageTestBase::testMigrateUpgradeReviewPage

File

tests/src/Functional/MigrateUpgradeReviewPageTestBase.php, line 25

Class

MigrateUpgradeReviewPageTestBase
Provides a base class for testing the review step of the Upgrade form.

Namespace

Drupal\Tests\commerce_migrate\Functional

Code

public function testMigrateUpgradeReviewPage() {
  $this
    ->prepare();

  // Start the upgrade process.
  $this
    ->drupalGet('/upgrade');
  $this
    ->submitForm([], 'Continue');

  // Get valid credentials.
  $edits = $this
    ->translatePostValues($this
    ->getCredentials());
  $this
    ->submitForm($edits, 'Review upgrade');

  // Test the upgrade paths.
  $this
    ->assertReviewForm();
}