joshgaber / NovaUnit

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

Allows assertion on existence of fields when using fieldsFor... functions #58

Open andypooletrioteca opened 1 year ago

andypooletrioteca commented 1 year ago

When having fields defined in a fieldsForIndex, fieldsForUpdate, fieldsForCreate or fieldsForDetail functions the assertHasField was not enough. Added the methods assertHasIndexField, assertHasDetailField, assertHasUpdateField and assertHasCreationField to solve this problem.

artim-ctrl commented 1 year ago

Hi, @joshgaber! What do you say about this? This functionality looks cool and would be useful for many, including me :)