You are here

public function NodeClassicTest::testNodeClassicUpgrade in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php \Drupal\Tests\migrate_drupal_ui\Functional\d6\NodeClassicTest::testNodeClassicUpgrade()

Tests node classic migration via the UI.

File

core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php, line 81

Class

NodeClassicTest
Tests the classic node migration runs.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d6

Code

public function testNodeClassicUpgrade() {

  // Add a node classic migrate table to d8.
  $this
    ->makeNodeMigrateMapTable(NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '6');

  // Start the upgrade process.
  $this
    ->submitCredentialForm();

  // Confirm there are only classic node migration map tables. This shows
  // that only the classic migration will run.
  $results = $this
    ->nodeMigrateMapTableCount('6');
  $this
    ->assertSame(14, $results['node']);
  $this
    ->assertSame(0, $results['node_complete']);
}