NodeTypeTest.php in Commerce Migrate 3.1.x
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 {
protected static $modules = [
'node',
'migrate_plus',
];
protected function setUp() : void {
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);
}
}