joshgaber / NovaUnit

Unit testing suite for Laravel Nova, built to extend PHPUnit
https://joshgaber.github.io/NovaUnit
MIT License
67 stars 23 forks source link

Add fields getter to MockAction #53

Closed PeterDKC closed 4 weeks ago

PeterDKC commented 1 year ago

While the existing field assertions do bring coverage to the existence of of keys in the fields array on an Action, they still leave a couple of important gaps:

The method added here affords a low-effort way to cover both of these cases by simply exposing the fields array via the MockAction. Let me know what you think.

robertmarney commented 1 month ago

Hey @PeterDKC

As a head-up this package was marked as abandoned on packagist recently and has been replaced with a new fork (with @joshgaber's blessing)

You can find it here: Packagist and GitHub

The latest release provides support for getting fields (with a slight change in api)

PeterDKC commented 1 month ago

Ah, excellent, thanks so much @robertmarney , I'll make us a ticket to flip over to that.