Laravel 7.5 is released. The main updates include:
New Http client assertion
The new version brings two new testing methods for the Http client:
Http::assertNotSent( function ($request) { return $request->hasHeader( 'X-First' , 'foo' ) && $request->url() == 'http://test.com/users' && $request[ 'name' ] == 'Taylor' && $request[ 'role' ] == 'Developer' ; }); Http::assertNothingSent();
assertNotSent()
A Boolean condition is returned, which contains constraints that need to match the request.
Added
- Added
assertNotSent()
andassertNothingSent()
method toIlluminate\Http\Client\Factory
( # 32197 ) - Added support
renameColumn()
for enumeration ( # 32205 ) - Support returning caster instance ( # 32225 )
See the update instructions for more details: