You are here

NoMultilingualReviewPageTestBase.php in Drupal 9

File

core/modules/migrate_drupal_ui/tests/src/Functional/NoMultilingualReviewPageTestBase.php
View source
<?php

namespace Drupal\Tests\migrate_drupal_ui\Functional;


/**
 * Tests the upgrade review form without translations.
 *
 * When using this test class, do not enable migrate_drupal_multilingual.
 */
abstract class NoMultilingualReviewPageTestBase extends MultilingualReviewPageTestBase {

  /**
   * Tests the review page when content_translation is enabled.
   */
  public function testMigrateUpgradeReviewPage() {
    $this
      ->prepare();

    // Start the upgrade process.
    $this
      ->submitCredentialForm();
    $session = $this
      ->assertSession();
    $this
      ->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $session
      ->statusCodeEquals(200);

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

}

Classes

Namesort descending Description
NoMultilingualReviewPageTestBase Tests the upgrade review form without translations.