From fede81700ed2ba0f6640901a09d3995c564a340e Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 31 Dec 2022 00:50:30 +0100 Subject: [PATCH] set correct expected return-code from exception in unit-test Signed-off-by: Michael Kaufmann --- tests/IpsAndPorts/IpsAndPortsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/IpsAndPorts/IpsAndPortsTest.php b/tests/IpsAndPorts/IpsAndPortsTest.php index e3ce3c4a..263788e9 100644 --- a/tests/IpsAndPorts/IpsAndPortsTest.php +++ b/tests/IpsAndPorts/IpsAndPortsTest.php @@ -216,7 +216,7 @@ class IpsAndPortsTest extends TestCase 'id' => 1, 'listen_statement' => 0 ]; - $this->expectExceptionCode(405); + $this->expectExceptionCode(403); $this->expectExceptionMessage("Not allowed to execute given command."); IpsAndPorts::getLocal($reseller_userdata, $data)->update(); }