assertContains added to the testing utils built into the Inertia assertion library #958
Unanswered
JosephO1992
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently can't seem to find a way if an array on the Inertia object has a specific value.
For example:
$inertia->component('Test/Component')
->where('component.data.arrayToTest', function ($value) {
$value <----- this is where I'd like to put things like assertContains() on this array...
}
If anyone knows a way to do this, that'd be great, but otherwise this could be a useful feature in the future.
Beta Was this translation helpful? Give feedback.
All reactions