gherkin-lint-php
gherkin-lint-php copied to clipboard
Missing when not picked up
Given I place an order for reminder code "ABC1001"
And I am on practice "1"
And I am user "[email protected]"
And I send an approval request for reminder code "ABC1001"
Then the state of the order is "approved"
And the action "approve" was made by "[email protected]"
Unrelated, but I have a preference to not embed these strings just to check they're still the same, I prefer the form
Given I place an order for reminder code
And I send an approval request for that reminder code
Then the state of the order is "approved"
And the action "approve" was made by me
The key part is "that" here, I keep a reference to stuff created in previous steps in a sort of clipboard container, allowing me to say
set('reminder code', $object);
get('reminder code');
in my contexts.