All Projects → def-studio → pest-plugin-laravel-expectations

def-studio / pest-plugin-laravel-expectations

Licence: MIT License
The Pest Laravel Expectations Plugin

Programming Languages

PHP
23972 projects - #3 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to pest-plugin-laravel-expectations

awesome-pest
🚀 A curated list of awesome resources related to Pest.
Stars: ✭ 38 (+18.75%)
Mutual labels:  pest
laravel-blueprint-pestphp-addon
A PestPHP addon for Laravel Shift's Blueprint
Stars: ✭ 30 (-6.25%)
Mutual labels:  pest
pest-plugin-test-time
A Pest plugin to control the flow of time
Stars: ✭ 31 (-3.12%)
Mutual labels:  pest
website
This repository contains Pest's website and documentation
Stars: ✭ 15 (-53.12%)
Mutual labels:  pest
pest-plugin-laravel
The Pest Laravel Plugin
Stars: ✭ 56 (+75%)
Mutual labels:  pest-plugin
pest-plugin-laravel-octane
⛽ Pest plugin to test Laravel applications powered by Octane.
Stars: ✭ 21 (-34.37%)
Mutual labels:  pest
create-siler-app
🧱 Set up a modern Siler app by running one command.
Stars: ✭ 15 (-53.12%)
Mutual labels:  pest
html-parser
A simple and general purpose html/xhtml parser, using Pest.
Stars: ✭ 56 (+75%)
Mutual labels:  pest
Pest
Pest is an elegant PHP Testing Framework with a focus on simplicity
Stars: ✭ 3,712 (+11500%)
Mutual labels:  pest

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 is available at:

https://def-studio.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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].