class MigrateNodeStubTest
Same name and namespace in other branches
- 11.x core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest
- 10 core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest
- 8.9.x core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest
Test stub creation for nodes.
@group node
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\migrate\Kernel\MigrateTestBase implements \Drupal\migrate\MigrateMessageInterface extends \Drupal\KernelTests\KernelTestBase
- class \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase extends \Drupal\Tests\migrate\Kernel\MigrateTestBase
- class \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest uses \Drupal\migrate_drupal\Tests\StubTestTrait extends \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase
- class \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase extends \Drupal\Tests\migrate\Kernel\MigrateTestBase
- class \Drupal\Tests\migrate\Kernel\MigrateTestBase implements \Drupal\migrate\MigrateMessageInterface extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of MigrateNodeStubTest
File
-
core/
modules/ node/ tests/ src/ Kernel/ Migrate/ MigrateNodeStubTest.php, line 14
Namespace
Drupal\Tests\node\Kernel\MigrateView source
class MigrateNodeStubTest extends MigrateDrupalTestBase {
use StubTestTrait;
/**
* {@inheritdoc}
*/
protected static $modules = [
'node',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('node');
// Need at least one node type present.
NodeType::create([
'type' => 'testnodetype',
'name' => 'Test node type',
])->save();
}
/**
* Tests creation of node stubs.
*/
public function testStub() {
$this->performStubTest('node');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.