public function NodeTypeTest::testNodeType in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/NodeTypeTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\NodeTypeTest::testNodeType()
- 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\uc6Code
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);
}