Closed ostark closed 1 year ago
I added a parts
param to ->assertLocation
allowing you to specify which parts (via PHP’s parse_url
) are checked. E.g.,
$response->assertLocation(‘/foo’, [‘path’]);
There’s also a sugar method for this common use case,
$response->assertLocationPath(‘/foo’);
Honestly, I don't know a good solution, but when testing the last step of the Commerce checkout process I'm in the need to skip query parameters because it's dynamic.
Ideas:
do you have a better idea?