private function RabbitHoleBehaviorSettingsTest::generateTestNodeType in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 tests/src/Functional/RabbitHoleBehaviorSettingsTest.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsTest::generateTestNodeType()
Helper function to generate the test node type.
1 call to RabbitHoleBehaviorSettingsTest::generateTestNodeType()
- RabbitHoleBehaviorSettingsTest::setUp in tests/
src/ Functional/ RabbitHoleBehaviorSettingsTest.php
File
- tests/
src/ Functional/ RabbitHoleBehaviorSettingsTest.php, line 161
Class
- RabbitHoleBehaviorSettingsTest
- Test the RabbitHoleBehaviorSettings configuration entity functionality.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
private function generateTestNodeType() {
$type = NodeType::create([
'type' => 'test_behavior_settings_node_type',
'name' => 'Test Behavior Settings Node Type',
]);
$type
->save();
return $type;
}