Skip to content

Commit

Permalink
Reset Filters between feature tests, fixes #3085
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Jul 7, 2020
1 parent 5c40d31 commit cda8697
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/Test/FeatureTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ public function call(string $method, string $path, array $params = null)
// instance get the right one.
Services::injectMock('request', $request);

// Make sure filters are reset between tests
Services::injectMock('filters', Services::filters(null, false));

$response = $this->app
->setRequest($request)
->run($routes, true);
Expand Down

0 comments on commit cda8697

Please sign in to comment.