Skip to content

Commit dbf469f

Browse files
committed
fix: feature testing does not reset validation result
1 parent 05fbcd4 commit dbf469f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/Test/FeatureTestTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ public function call(string $method, string $path, ?array $params = null)
175175
// Make sure filters are reset between tests
176176
Services::injectMock('filters', Services::filters(null, false));
177177

178+
// Make sure validation is reset between tests
179+
Services::injectMock('validation', Services::validation(null, false));
180+
178181
$response = $this->app
179182
->setContext('web')
180183
->setRequest($request)

0 commit comments

Comments
 (0)