![](https://banners.beyondco.de/Pest%20Laravel%20Expectations.png?theme=light&packageManager=composer+require&packageName=--dev+defstudio%2Fpest-plugin-laravel-expectations&pattern=circuitBoard&style=style_2&description=Laravel+tailored+%40pestphp+expectations&md=1&showWatermark=0&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg)
Easily add Laravel specific expectations to your Pest testing ecosystem
it('can check model exists', function(){ $user = User::factory()->create(); expect($user)->toExist(); });
test('user can edit a post', function(){ $user = User::factory()->create(); expect($user)->toBeAbleTo('edit', $post); });
test('home is rendered', function () { $response = get('/home'); expect($response)->toBeSuccessful(); });
Get the full source code at https://github.com/defstudio/pest-plugin-laravel-expectations
This package is powered by def:studio, follow us on Twitter