set correct expected return-code from exception in unit-test
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -216,7 +216,7 @@ class IpsAndPortsTest extends TestCase
|
|||||||
'id' => 1,
|
'id' => 1,
|
||||||
'listen_statement' => 0
|
'listen_statement' => 0
|
||||||
];
|
];
|
||||||
$this->expectExceptionCode(405);
|
$this->expectExceptionCode(403);
|
||||||
$this->expectExceptionMessage("Not allowed to execute given command.");
|
$this->expectExceptionMessage("Not allowed to execute given command.");
|
||||||
IpsAndPorts::getLocal($reseller_userdata, $data)->update();
|
IpsAndPorts::getLocal($reseller_userdata, $data)->update();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user