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