Skip to content

Commit b6793dc

Browse files
loks0nclaude
andcommitted
Fix remaining blocked account test assertions
Update testBlockedAccount and testSelfBlockedAccount to expect 403 instead of 401 for blocked user responses. These were missed in the previous test assertion update. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent a2ad25a commit b6793dc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/e2e/Services/Account/AccountCustomClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ public function testBlockedAccount(): void
23602360
'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session,
23612361
]));
23622362

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

23652365
$response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', array_merge([
23662366
'origin' => 'http://localhost',
@@ -2371,7 +2371,7 @@ public function testBlockedAccount(): void
23712371
'password' => $password,
23722372
]);
23732373

2374-
$this->assertEquals(401, $response['headers']['status-code']);
2374+
$this->assertEquals(403, $response['headers']['status-code']);
23752375
}
23762376

23772377

@@ -2440,7 +2440,7 @@ public function testSelfBlockedAccount(): void
24402440
'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session,
24412441
]));
24422442

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

24452445
$response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', array_merge([
24462446
'origin' => 'http://localhost',
@@ -2451,7 +2451,7 @@ public function testSelfBlockedAccount(): void
24512451
'password' => $password,
24522452
]);
24532453

2454-
$this->assertEquals(401, $response['headers']['status-code']);
2454+
$this->assertEquals(403, $response['headers']['status-code']);
24552455
}
24562456

24572457
public function testCreateJWT(): void

0 commit comments

Comments
 (0)