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');