public function ParagraphsSetsFunctionalTestTrait::addNodeType in Paragraphs Sets 8.2
Create a node entity bundle (content type).
Parameters
string $nodeType: The machine name for the node type.
1 call to ParagraphsSetsFunctionalTestTrait::addNodeType()
- ParagraphSetBasicFunctionality::setUp in tests/
src/ Functional/ ParagraphSetBasicFunctionality.php
File
- tests/
src/ Traits/ ParagraphsSetsFunctionalTestTrait.php, line 21
Class
- ParagraphsSetsFunctionalTestTrait
- Contains functions common to functional paragraphs sets tests.
Namespace
Drupal\Tests\paragraphs_sets\TraitsCode
public function addNodeType(string $nodeType) {
$this
->drupalCreateContentType([
'type' => $nodeType,
'name' => $nodeType,
]);
}