claudiodekker / inertia-laravel-testing

Testing helpers for https://github.com/inertiajs/inertia-laravel
MIT License
134 stars 6 forks source link

Fail when an unsupported second argument is provided to `has` #28

Closed claudiodekker closed 3 years ago

claudiodekker commented 3 years ago

Currently, when making this mistake, no error is thrown and the test 'passes', essentially only checking that the prop is set. This PR fixes this behaviour, and throws an InvalidArgumentException when this occurs.