public function MigrateUpgradeEckTest::testMigrateUpgrade in Entity Construction Kit (ECK) 8
Tests the migrate upgrade review form and upgrade process.
File
- tests/
src/ Functional/ MigrateUpgradeEckTest.php, line 57
Class
- MigrateUpgradeEckTest
- Tests ECK upgrade using the migrate UI.
Namespace
Drupal\Tests\eck\FunctionalCode
public function testMigrateUpgrade() {
$this
->submitCredentialForm();
$this
->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
$this
->assertSession()
->statusCodeEquals(200);
// Test the upgrade paths.
$this
->assertReviewForm();
$this
->submitForm([], 'Perform upgrade');
$this
->assertUpgrade($this
->getEntityCounts());
}