Currently only mockCreate and mockUpdate support match(). This PR adds match() for the other kinds of mock requests. Request bodies can get complex so it's nice to have a callback where you can do assertions etc.
For the implementation I basically merged AttributeMatcher into MockRequest.
Currently only
mockCreate
andmockUpdate
supportmatch()
. This PR addsmatch()
for the other kinds of mock requests. Request bodies can get complex so it's nice to have a callback where you can do assertions etc.For the implementation I basically merged
AttributeMatcher
intoMockRequest
.