You are here

public function MigrateUpgradeEckTest::submitCredentialForm in Entity Construction Kit (ECK) 8

Navigates to the credential form and submits valid credentials.

1 call to MigrateUpgradeEckTest::submitCredentialForm()
MigrateUpgradeEckTest::testMigrateUpgrade in tests/src/Functional/MigrateUpgradeEckTest.php
Tests the migrate upgrade review form and upgrade process.

File

tests/src/Functional/MigrateUpgradeEckTest.php, line 71

Class

MigrateUpgradeEckTest
Tests ECK upgrade using the migrate UI.

Namespace

Drupal\Tests\eck\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');
}