From 425354c98e98467d012718649444e21e22121943 Mon Sep 17 00:00:00 2001 From: dante di domenico Date: Fri, 6 Sep 2024 16:49:14 +0200 Subject: [PATCH] test: fix for php 7.4 --- tests/TestCase/Controller/ApiProxyTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase/Controller/ApiProxyTraitTest.php b/tests/TestCase/Controller/ApiProxyTraitTest.php index 201ec97..3e77d11 100644 --- a/tests/TestCase/Controller/ApiProxyTraitTest.php +++ b/tests/TestCase/Controller/ApiProxyTraitTest.php @@ -88,7 +88,7 @@ public function testMethodNotAllowedException(): void apiRequest as public; } }; - $t->apiRequest(['method' => 'PPOOSSTT']); + $t->apiRequest(['method' => 'PPOOSSTT', 'path' => '/']); $error = $t->viewBuilder()->getVar('error'); static::assertTrue(in_array($error['status'], ['405', '500'])); static::assertEquals('Method Not Allowed', $error['title']);