Replies: 2 comments 1 reply
-
Controller actions are normally tested using Test::Mojo or manually with Mojolicious::Command::get, in either case loaded from the application and passed the route to the action. |
Beta Was this translation helpful? Give feedback.
1 reply
-
You have direct access to the validation parameters. See https://docs.mojolicious.org/Mojolicious/Validator/Validation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use Mojolicious command for testing a controller function. I artificially set the params for the controller inside a command:
`sub run {
my ($self, @Args) = @_;
}
`
Controller function looks like this:
`sub process_order {
my $c = shift;
`
Is it possible to set the parameter so it was available from the validator?
Beta Was this translation helpful? Give feedback.
All reactions