Skip to content

Commit

Permalink
Merge pull request codeigniter4#6628 from kenjis/fix-FormHelperTest
Browse files Browse the repository at this point in the history
test: remove uneeded code in FormHelperTest
  • Loading branch information
kenjis authored Oct 5, 2022
2 parents acdf173 + 0591cc1 commit b764570
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/system/Helpers/FormHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ private function setRequest(): void

public function testFormOpenBasic()
{
$request = $this->setRequest();
Services::injectMock('request', $request);
$this->setRequest();

$before = (new Filters())->globals['before'];
if (in_array('csrf', $before, true) || array_key_exists('csrf', $before)) {
Expand Down

0 comments on commit b764570

Please sign in to comment.