You are here

public function MigrateUpgradeTestBase::submitCredentialForm in Drupal 9

Navigates to the credential form and submits valid credentials.

7 calls to MigrateUpgradeTestBase::submitCredentialForm()
IdConflictTest::testIdConflictForm in core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
Tests ID Conflict form.
IdConflictTest::testIdConflictForm in core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
Tests ID Conflict form.
MigrateUpgradeExecuteTestBase::doUpgradeAndIncremental in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
Executes an upgrade and then an incremental upgrade.
MultilingualReviewPageTestBase::testMigrateUpgradeReviewPage in core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php
Tests the migrate upgrade review form.
NodeClassicTest::testNodeClassicUpgrade in core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
Tests node classic migration via the UI.

... See full list

File

core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php, line 64

Class

MigrateUpgradeTestBase
Provides a base class for testing migration upgrades in the UI.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional

Code

public function submitCredentialForm() {
  $this
    ->drupalGet('/upgrade');
  $this
    ->submitForm([], 'Continue');

  // Get valid credentials.
  $this->edits = $this
    ->translatePostValues($this
    ->getCredentials());

  // When the Credential form is submitted the migrate map tables are created.
  $this
    ->submitForm($this->edits, 'Review upgrade');
}