From 0591cc108284679711cda9a7b68e40587c52c696 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 5 Oct 2022 09:01:24 +0900 Subject: [PATCH] test: remove uneeded code --- tests/system/Helpers/FormHelperTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/system/Helpers/FormHelperTest.php b/tests/system/Helpers/FormHelperTest.php index 08df8bb16600..ffd150aa7424 100644 --- a/tests/system/Helpers/FormHelperTest.php +++ b/tests/system/Helpers/FormHelperTest.php @@ -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)) {