laravel-test-utils
laravel-test-utils provides some utilities and helpers for testing Laravel based applications:
- A mock Guzzle client allows you to test how your code reacts to responses from external APIs while isolated from those APIs.
-
Writer simpler database assertions using
DBCast::toJson
which casts arrays or json strings into a SQL JSON object which can then be used inassertDatabaseHas
. - Streamlined model creation helpers wrapping the framework's factory methods.
More information is available via Packagist
Installation
> composer require savvywombat/laravel-test-utils