Skip to content

Commit 446f75c

Browse files
loks0nclaude
andcommitted
Update test assertions for blocked user status code
Change expected status code from 401 to 403 for USER_BLOCKED errors to match the semantic change in error codes. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 3e1d855 commit 446f75c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/General/HooksTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testUserHooks()
128128
'cookie' => $cookie,
129129
]);
130130

131-
$this->assertEquals(401, $response['headers']['status-code']);
131+
$this->assertEquals(403, $response['headers']['status-code']);
132132

133133
/**
134134
* Test for api controllers
@@ -140,7 +140,7 @@ public function testUserHooks()
140140
'cookie' => $cookie,
141141
]);
142142

143-
$this->assertEquals(401, $response['headers']['status-code']);
143+
$this->assertEquals(403, $response['headers']['status-code']);
144144
$this->assertEquals(Exception::USER_BLOCKED, $response['body']['type']);
145145

146146
/**

0 commit comments

Comments
 (0)