protected function NodeBehaviorSettingsFormTest::createEntityBundle in Rabbit Hole 8
Same name and namespace in other branches
- 2.x modules/rh_node/tests/src/Functional/NodeBehaviorSettingsFormTest.php \Drupal\Tests\rh_node\Functional\NodeBehaviorSettingsFormTest::createEntityBundle()
Creates new entity bundle.
Return value
string ID of the created bundle.
Overrides RabbitHoleBehaviorSettingsFormTestBase::createEntityBundle
File
- modules/
rh_node/ tests/ src/ Functional/ NodeBehaviorSettingsFormTest.php, line 61
Class
- NodeBehaviorSettingsFormTest
- Test the functionality of the rabbit hole form additions to the node form.
Namespace
Drupal\Tests\rh_node\FunctionalCode
protected function createEntityBundle() {
$this->bundle = $this
->drupalCreateContentType([
'type' => mb_strtolower($this
->randomMachineName()),
]);
return $this->bundle
->id();
}