set correct expected return-code from exception in unit-test

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann 2022-12-31 00:50:30 +01:00
parent b7264cdc5d
commit fede81700e
No known key found for this signature in database
GPG Key ID: C121F97338D7A352

View File

@ -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();
}