How to test a custom action?
In v2 this used to work
but in V3 it gives
Method Illuminate\Http\Response::callPageAction does not exist.
I changed callPageAction to runAction and now I'm getting
Unable to call component method. Public method [return] not found on component
3 Replies
Solution
Try
callAction()
Just a thought - Using
return
for a method or variable name is possible but it's also a reserved keyword in PHP... not sure if this could be causing issues down the lineThanks! it worked