This context has no steps by itself, but helper to create an own context by extending it. For example if you want to create users and assign them to groups this could look like.
| firstname | Test |
| lastname | User |
Create the entity by mapping attributes from the table.
Uses createObject
under the hood.
Create a relation between two entities. Uses createRelation
under the hood.
NOTE: You need to name the Thens
a bit differently from the Givens
, as behat will not distinguish the keywords.
Otherwise, you would create objects/relations instead of checking if they exist.
Usually we do this by adding things like "exists" or "now".
| firstname | Test |
| lastname | User |
Check if the entity with the given attributes can be found.
The opposite.
Check if the relation exists.