NodeTypeTest.php in Commerce Migrate 8.2
File
modules/ubercart/tests/src/Kernel/Migrate/uc6/NodeTypeTest.php
View source
<?php
namespace Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6;
use Drupal\node\Entity\NodeType;
class NodeTypeTest extends Ubercart6TestBase {
public static $modules = [
'node',
'migrate_plus',
];
protected function setUp() {
parent::setUp();
$this
->installConfig([
'node',
]);
$this
->executeMigration('d6_node_type');
}
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);
}
}