Skip to content

Commit d9b3d5d

Browse files
committed
Added enableMiddleware function
1 parent c19f8f2 commit d9b3d5d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Codeception/Module/Laravel/MakesHttpRequests.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,19 @@ public function disableMiddleware($middleware = null): void
2020
{
2121
$this->client->disableMiddleware($middleware);
2222
}
23+
24+
/**
25+
* Enable the given middleware for the test.
26+
*
27+
* ```php
28+
* <?php
29+
* $I->enableMiddleware();
30+
* ```
31+
*
32+
* @param string|array|null $middleware
33+
*/
34+
public function enableMiddleware($middleware = null): void
35+
{
36+
$this->client->enableMiddleware($middleware);
37+
}
2338
}

0 commit comments

Comments
 (0)