Skip to content

Commit e78e6c7

Browse files
committed
docs: fix execute() explanation
1 parent f6da16b commit e78e6c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

user_guide_src/source/testing/controllers.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ Specifies the class name of the controller to test. The first parameter must be
6969

7070
$this->controller(\App\Controllers\ForumController::class);
7171

72-
**execute($method)**
72+
**execute(string $method, ...$params)**
7373

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::
7575

7676
$results = $this->controller(\App\Controllers\ForumController::class)
7777
->execute('showCategories');
7878

79+
By specifying the second and subsequent parameters, you can pass them to the controller method.
80+
7981
This returns a new helper class that provides a number of routines for checking the response itself. See below
8082
for details.
8183

0 commit comments

Comments
 (0)