NoMultilingualReviewPageTest.php

Same filename in this branch
  1. 9 core/modules/rdf/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php
  2. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d6/NoMultilingualReviewPageTest.php
  3. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d7/NoMultilingualReviewPageTest.php
  4. 9 core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d6/NoMultilingualReviewPageTest.php
  5. 9 core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d7/NoMultilingualReviewPageTest.php
Same filename in other branches
  1. 8.9.x core/modules/migrate_drupal_ui/tests/src/Functional/d6/NoMultilingualReviewPageTest.php
  2. 10 core/modules/forum/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php
  3. 10 core/modules/forum/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php
  4. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d6/NoMultilingualReviewPageTest.php
  5. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d7/NoMultilingualReviewPageTest.php
  6. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php
  7. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php
  8. 11.x core/modules/forum/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php
  9. 11.x core/modules/forum/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php
  10. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d6/NoMultilingualReviewPageTest.php
  11. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d7/NoMultilingualReviewPageTest.php
  12. 11.x core/modules/statistics/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php
  13. 11.x core/modules/statistics/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php

Namespace

Drupal\Tests\color\Functional\Migrate

File

core/modules/color/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php

View source
<?php

namespace Drupal\Tests\color\Functional\Migrate;

use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase;

/**
 * Tests review page.
 *
 * The test method is provided by the MigrateUpgradeTestBase class.
 *
 * @group color
 * @group legacy
 */
class NoMultilingualReviewPageTest extends NoMultilingualReviewPageTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'color',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->loadFixture($this->getModulePath('color') . '/tests/fixtures/drupal7.php');
    }
    
    /**
     * Tests that Color is displayed in the will be upgraded list.
     */
    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 Color will be upgraded.
        $session->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Color']");
        $session->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Color']");
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getSourceBasePath() {
        return __DIR__;
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getAvailablePaths() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getIncompletePaths() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getMissingPaths() {
        return [];
    }

}

Classes

Title Deprecated Summary
NoMultilingualReviewPageTest Tests review page.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.