Slide 69
Slide 69 text
@mheap
#phpkonf
Given that header property "X-CustomAuthKey" is "Secret123"
And that header property "Accept" is "application/json+vnd.v2"
And that the request body is valid JSON
'''
{
"alpha":"beta",
"count":3,
"collection":["a","b","c"]
}
'''
When I make a "POST" request to "/account/balance"
Then the response status code should be "200"
And the "X-Remaining" header property equals "18"
And the "balance.usd" property equals"1832.54"
And the "balance.gbp" property equals "13.99"
And the "balance.eur" property equals "19422.18"