getJson('/api/v2/channel?view=user-edit', authHeader($me)) ->assertOk() ->json('data.rows'); $uids = array_column($rows, 'uid'); expect($uids)->toContain($mine); expect($uids)->toHaveCount(1); // 交互式选择要展示的字段 expect($rows[0])->toHaveKeys(['uid', 'name', 'lang']); expect($rows[0]['name'])->toBe('my channel'); }); it('requires authentication', function () { $this->getJson('/api/v2/channel?view=user-edit') ->assertJsonPath('ok', false); });