2
0

fixtures.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * v3 用例的种子数据。
  4. *
  5. * 不同环境(local / staging / prod)数据不同:换环境时在 config.local.php 的
  6. * `fixtures` 里覆盖要改的键,不要改这里。
  7. * 当前取值来自本地开发库实测 + openapi spec 里的 example。
  8. */
  9. return [
  10. // 一个 translation 类型、有翻译进度与译文数据的 channel
  11. 'channel' => '4414c96e-4903-11ef-af72-571c3fee08e6',
  12. // reactions / reactions/tally 用的 target(collection)
  13. 'target_id' => '5b4511c1-c99f-47e7-9798-97b9e5229e18',
  14. // tipitaka-related-paragraphs 的两组互斥坐标
  15. 'book' => 1,
  16. 'para' => 2,
  17. 'book_name' => 'dn1',
  18. 'cs_para' => 4,
  19. // 搜索关键词 + 一条真实 OpenSearch 文档 id(search/{id} 的 200 用例)
  20. 'search_q' => 'dukkha',
  21. 'search_doc_id' => 'term_f8afdcaa-ad68-4795-b3d8-d5f12bdb3a5f',
  22. // discussions 写用例挂的句子:放在测试账号自己的 channel 里、由测试账号编辑,
  23. // 这样即便有通知也只发给自己(用例本身还会带 notify=false)。换环境时按需覆盖。
  24. 'discussion_sentence' => 'ee5259be-5d1e-4408-a2a6-566a5773eef1',
  25. // discussion_sentence 所在的 channel(agent 授权的范围)
  26. 'discussion_channel' => '1721b7fa-e471-46fd-b860-64b9e79d370e',
  27. // agent 代写用例:归测试账号所有的 AI 模型 uid,按环境在 config.local.php 里配,没配则 SKIP
  28. 'agent_model' => null,
  29. // 一个已注册账号的邮箱(email-certifications 的「已注册」用例;只校验、不发信)。
  30. // 留空则该用例 SKIP。
  31. 'registered_email' => getenv('API_TEST_REGISTERED_EMAIL') ?: null,
  32. ];