Skip to content

Commit 9a517ca

Browse files
test(PortForward): check for full exception fqcn
1 parent a410938 commit 9a517ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsPortForwardTestCase.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class APIModelsPortForwardTestCase extends TestCase {
265265
# Check each disallowed value and ensure it throws an exception during validation
266266
foreach ($disallowed_values as $value) {
267267
$this->assert_throws(
268-
exceptions: ['ValidationError'],
268+
exceptions: ['RESTAPI\Responses\ValidationError'],
269269
callable: function () use ($value) {
270270
$port_forward = new PortForward(
271271
data: [

0 commit comments

Comments
 (0)