LaravelPackages.net
Acme Inc.
Toggle sidebar
defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

620.506
98
v2.6.1
About defstudio/pest-plugin-laravel-expectations

defstudio/pest-plugin-laravel-expectations is a Laravel package for a plugin to add laravel tailored expectations to pest. It currently has 98 GitHub stars and 620.506 downloads on Packagist (latest version v2.6.1). Install it with composer require defstudio/pest-plugin-laravel-expectations. Discover more Laravel packages by defstudio or browse all Laravel packages to compare alternatives.

Last updated

Pest Laravel Expectations

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads License Twitter Follow

This Pest plugin adds Laravel specific expectations to the testing ecosystem

it('can check model exists', function(){
  $user = User::factory()->create();
  
  expect($user)->toExist();
});

Installation

You can install the package via composer:

composer require --dev defstudio/pest-plugin-laravel-11.expectations

The expectations added by this plugin are automatically loaded into Pest's expectation system. They can be used along other expectations.

Documentation

A full documentation with a detailed list of available expectations can be found at:

https://docs.defstudio.it/pest-plugin-laravel-expectations

Autocompletion

For PhpStorm users, a nice Plugin has been developed by Oliver Nybroe. It adds full autocompletion to ours Laravel Expectations, it is worth to take a look: https://github.com/pestphp/pest-intellij

Changelog

All notable changes to this project in our changelog. For a full understanding of what changed and the PR that where merged, see also the releases page

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Credits

Please see the contributing guide for details on how to contribute to this plugin.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The MIT License (MIT). Please see License File for more information.

Comments