defstudio / pest-plugin-laravel-expectations by fabio.ivona

A plugin to add laravel tailored expectations to Pest
123,559
91
2
Package Data
Maintainer Username: fabio.ivona
Maintainer Contact: fabio.ivona@defstudio.it (Fabio Ivona)
Package Create Date: 2021-10-02
Package Last Update: 2024-04-18
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:16:58
Package Statistics
Total Downloads: 123,559
Monthly Downloads: 8,244
Daily Downloads: 388
Total Stars: 91
Total Watchers: 2
Total Forks: 11
Total Open Issues: 3

Pest Laravel Expectations

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

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-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://defstudio.github.io/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.