From a5682087fa30871b889a94e0debf83de9b58a041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 24 Jan 2021 21:54:15 +0200 Subject: [PATCH] Port slim.request.form_hash to _POST --- tests/Controller/RunTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Controller/RunTest.php b/tests/Controller/RunTest.php index 868dcc2c..0db287c7 100644 --- a/tests/Controller/RunTest.php +++ b/tests/Controller/RunTest.php @@ -171,13 +171,15 @@ public function testDeleteSubmit(): void Environment::mock([ 'REQUEST_METHOD' => 'POST', + 'CONTENT_TYPE' => 'application/x-www-form-urlencoded', 'SCRIPT_NAME' => 'index.php', 'PATH_INFO' => '/run/delete', - 'slim.request.form_hash' => [ - 'id' => 'aaaaaaaaaaaaaaaaaaaaaaaa', - ], ]); + $_POST = [ + 'id' => 'aaaaaaaaaaaaaaaaaaaaaaaa', + ]; + $this->app->expects($this->once()) ->method('urlFor') ->with('home');