You are here

public function NodeTypeTest::testNodeType in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/NodeTypeTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\NodeTypeTest::testNodeType()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/NodeTypeTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\NodeTypeTest::testNodeType()

Tests node type migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/NodeTypeTest.php, line 37

Class

NodeTypeTest
Tests product node types are not migrated.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testNodeType() {
  $node_type = NodeType::load('page');
  $this
    ->assertInstanceOf(NodeType::class, $node_type);
  $node_type = NodeType::load('product');
  $this
    ->assertNULL($node_type);
  $node_type = NodeType::load('ship');
  $this
    ->assertNULL($node_type);
}