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