You are here

public function MigrateNodeTest::testMigrateNode in Node Option Premium 8

Test node migration from Drupal 7 to 8.

File

tests/src/Kernel/Migrate/MigrateNodeTest.php, line 73

Class

MigrateNodeTest
Tests node migration.

Namespace

Drupal\Tests\nopremium\Kernel\Migrate\d7

Code

public function testMigrateNode() {

  // Assert that node 129 is premium.
  $node = Node::load(129);
  $this
    ->assertEquals(1, $node->premium->value);

  // And assert that node 1 isn't.
  $node = Node::load(1);
  $this
    ->assertEquals(0, $node->premium->value);
}