insert([ 'platform' => 'B1', 'signal_type' => 'site', 'unique_key' => 'demo-x.ru', 'current_limit' => 50, 'sync_status' => 'ok', 'created_at' => now(), 'updated_at' => now(), ]); $res = $this->getJson('/api/admin/dashboard/supply'); $res->assertOk(); $res->assertJsonStructure([ 'snapshot_date', 'light', 'totals' => ['demand', 'formula', 'ordered', 'mismatches'], 'total_orders', 'total_limit', 'groups', ]); expect($res->json('light'))->toBeIn(['green', 'red']); });