public function Upgrade7Test::testUpgrade in Drupal 10
Executes all steps of migrations upgrade.
File
- core/
modules/ rdf/ tests/ src/ Functional/ Migrate/ Upgrade7Test.php, line 145
Class
- Upgrade7Test
- Tests Drupal 7 upgrade using the migrate UI.
Namespace
Drupal\Tests\rdf\Functional\MigrateCode
public function testUpgrade() {
// Start the upgrade process.
$this
->submitCredentialForm();
$session = $this
->assertSession();
$this
->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
$session
->statusCodeEquals(200);
// Test the review form.
$this
->assertReviewForm();
$this
->submitForm([], 'Perform upgrade');
$this
->assertUpgrade($this
->getEntityCounts());
}