Entity lifecycle
DrevOps\BehatSteps\Steps\Helper\Drupal\EntityLifecycleTrait - Source
Creates Drupal entities and removes them when the scenario ends.
public function entityLifecycleCreate(EntityStubInterface $stub): EntityStubInterface
Creates an entity of a type that has no dedicated method
public function entityLifecycleCreateLanguage(EntityStubInterface $stub): EntityStubInterface
Creates a language
public function entityLifecycleCreateNode(EntityStubInterface $stub): EntityStubInterface
Creates a node
public function entityLifecycleCreateTerm(EntityStubInterface $stub): EntityStubInterface
Creates a taxonomy term
public function entityLifecycleFindNewest(array $stubs, string $id_key): ?EntityStubInterface
Find the newest of several entities whose ids carry no creation order
public function entityLifecycleParseFields(EntityStubInterface $stub, array $ignored_properties = [], ?EntityDefinitionCapabilityInterface $backend = NULL): void
Expands a stub's raw Gherkin values into the storage field shape
public function entityLifecycleRegister(EntityStubInterface $stub, string $id_key): void
Registers an entity created outside the create pipeline for cleanup