File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
user_guide_src/source/testing Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,15 @@ Specifies the class name of the controller to test. The first parameter must be
69
69
70
70
$this->controller(\App\Controllers\ForumController::class);
71
71
72
- **execute($method) **
72
+ **execute(string $method, ...$params ) **
73
73
74
- Executes the specified method within the controller. The only parameter is the name of the method to run::
74
+ Executes the specified method within the controller. The first parameter is the name of the method to run::
75
75
76
76
$results = $this->controller(\App\Controllers\ForumController::class)
77
77
->execute('showCategories');
78
78
79
+ By specifying the second and subsequent parameters, you can pass them to the controller method.
80
+
79
81
This returns a new helper class that provides a number of routines for checking the response itself. See below
80
82
for details.
81
83
You can’t perform that action at this time.
0 commit comments