function MigrateNoMigrateDrupalTest::testExecutionNoMigrateDrupal

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Functional/MigrateNoMigrateDrupalTest.php \Drupal\Tests\migrate\Functional\MigrateNoMigrateDrupalTest::testExecutionNoMigrateDrupal()
  2. 8.9.x core/modules/migrate/tests/src/Functional/MigrateNoMigrateDrupalTest.php \Drupal\Tests\migrate\Functional\MigrateNoMigrateDrupalTest::testExecutionNoMigrateDrupal()
  3. 11.x core/modules/migrate/tests/src/Functional/MigrateNoMigrateDrupalTest.php \Drupal\Tests\migrate\Functional\MigrateNoMigrateDrupalTest::testExecutionNoMigrateDrupal()

Tests execution of a migration.

File

core/modules/migrate/tests/src/Functional/MigrateNoMigrateDrupalTest.php, line 48

Class

MigrateNoMigrateDrupalTest
Execute migration.

Namespace

Drupal\Tests\migrate\Functional

Code

public function testExecutionNoMigrateDrupal() : void {
    $this->drupalGet('/migrate_no_migrate_drupal_test/execute');
    $this->assertSession()
        ->pageTextContains('Migration was successful.');
    $node_1 = Node::load(1);
    $node_2 = Node::load(2);
    $this->assertEquals('Node 1', $node_1->label());
    $this->assertEquals('Node 2', $node_2->label());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.