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

Policy #49

Closed lloricode closed 2 years ago

lloricode commented 2 years ago

Hi, is there a policy or gate assert for this? or check if the resource can or cannot access specific part by specific user?

joshgaber commented 2 years ago

No, this library doesn't support assertions around Laravel's policies and gate configurations, but I'm not opposed to adding them if someone wants to write those assertions.

lloricode commented 2 years ago

ok thank you, will try to figure out if a can make add an PolicyAssertions trait for MockResource