feat: translation codes
CI / 🧪 Tests Laravel (push) Successful in 2m34s
CI / 🐳 Build & Push Images (push) Successful in 2m26s

This commit is contained in:
2026-08-14 12:46:29 +02:00
parent 69372a49ed
commit 8b60283eeb
28 changed files with 59 additions and 62 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ it('blocks a user idempotently, removes follows, lists the block, and unblocks',
$this->postJson("/api/users/{$blocked->id}/block")
->assertOk()
->assertJsonPath('message', __('api.blocks.blocked'));
->assertJsonPath('code', 'USER_BLOCKED');
$this->postJson("/api/users/{$blocked->id}/block")->assertOk();
@@ -46,7 +46,7 @@ it('does not allow a user to block themselves', function () {
$this->postJson("/api/users/{$user->id}/block")
->assertUnprocessable()
->assertJsonPath('message', __('api.blocks.cannot_block_self'));
->assertJsonPath('code', 'CANNOT_BLOCK_SELF');
});
it('requires authentication to manage blocks', function () {