synthetic-private-body-do-not-log'; exit; } if ($scenario === 'json_error') { echo 'synthetic-private-body-do-not-log'; exit; } if ($scenario === 'oversized') { echo str_repeat('x', 16384); exit; } if ($scenario === 'slow') { usleep(1200000); } $cursor = $_GET['cursor'] ?? null; $page = $scenario === 'paged' && $cursor !== null ? inboxPage([inboxEvent(2, 'receive', 'sgc:7:warehouse-event:1')], 'cursor-two') : inboxPage([inboxEvent()], 'cursor-one', $scenario === 'paged'); if ($scenario === 'wrong_tenant') { $page['items'][0]['tenant_id'] = 8; $page['items'][0] = inboxSign($page['items'][0]); } if ($scenario === 'bad_hash') { $page['items'][0]['lines'][0]['quantity_milli'] = 5000; } $page['fixture_query'] = ['cursor' => $cursor, 'limit' => $_GET['limit'] ?? null]; echo json_encode($page, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);