Closed nenads closed 3 years ago
$response->assertActions(function($actions) {
return $actions[0]->modelId == 1;
});
Maybe use the callback approach for that
Although the assertions are really to show the action exists on the page. Not that it was selected. Good luck
Hi,
any suggestion
How to use it with
It will create error: Unresolvable dependency resolving [Parameter #0 [ $modelId ]] in class App\Nova\Actions\Delete
while
Creates: Illegal offset type in isset or empty
any suggestion how to assert Nova Actions that have constructor