Closed innocenzi closed 2 months ago
Take the following snippet:
MockClient::getGlobal()->assertSent(function (CreateDealRequest $request) { expect($request->body()->all())->toMatchArray([ 'title' => '[MGT] Jon Doe / foo - bar / ' . now()->addDay()->format('M d \'y'), 'status' => DealStatus::OPEN, ]); });
This would fail if there was a request other than CreateDealRequest. It would be great if assertSent could take the request type into account.
CreateDealRequest
assertSent
Open to PRing that 👍
Thank you for PRing this! I'm going to close this as it's now a PR.
Take the following snippet:
This would fail if there was a request other than
CreateDealRequest
. It would be great ifassertSent
could take the request type into account.Open to PRing that 👍