Skip to content

Commit

Permalink
test: fix for php 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
didoda committed Sep 6, 2024
1 parent 21194c2 commit 425354c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/Controller/ApiProxyTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 425354c

Please sign in to comment.