get('/api/auth/me', ['Accept' => 'text/html']); $r->assertStatus(401); $r->assertHeader('Content-Type', 'application/json'); expect($r->json('message'))->not->toBeEmpty(); }); test('гость c Accept:json на /api/auth/me получает 401 JSON (регрессия — уже работало)', function () { $r = $this->getJson('/api/auth/me'); $r->assertStatus(401); });