Same filename in this branch
  1. 10 core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php
  2. 10 core/modules/book/tests/src/Functional/Migrate/d6/ReviewPageTest.php
  3. 10 core/modules/book/tests/src/Functional/Migrate/d7/ReviewPageTest.php
Same filename and directory in other branches
  1. 9 core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php

Namespace

Drupal\Tests\tracker\Functional\Migrate

File

core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php
View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\tracker\Functional\Migrate;

use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase;

/**
 * Tests Review page.
 *
 * @group tracker
 * @group legacy
 */
class ReviewPageTest extends NoMultilingualReviewPageTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'tracker',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this
      ->loadFixture($this
      ->getModulePath('tracker') . '/tests/fixtures/drupal7.php');
  }

  /**
   * Tests the review page.
   */
  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);

    // Confirm that Tracker will be upgraded.
    $session
      ->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Tracker']");
    $session
      ->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Tracker']");
  }

  /**
   * {@inheritdoc}
   */
  protected function getSourceBasePath() {
    return __DIR__;
  }

  /**
   * {@inheritdoc}
   */
  protected function getAvailablePaths() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  protected function getIncompletePaths() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  protected function getMissingPaths() {
    return [];
  }

}

Classes

Namesort descending Description
ReviewPageTest Tests Review page.