Entities
DrevOps\BehatSteps\Steps\Drupal\EntityTrait - Source, Example
Create entities of a type that has no dedicated trait.
- Create entities of any type from a table of field values.
Covers types such as
commerce_productorgroup, where a dedicated trait would add vocabulary without adding behavior. Entities created here are removed after the scenario along with every other entity the scenario created.
Skip cleanup for 1 type with tag:@behat-steps-entity-cleanup-skip:commerce_product.
Steps
@Given the following :entity_type entities exist:
Create entities of a type from a table of field values
Given the following "commerce_product" entities exist:
| title | type | status |
| TNT | product | 1 |
| Anvil | product | 1 |