2
0

config.local.example.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * api-test 本机配置模板。复制成 config.local.php 再填(已 gitignore,不要提交):
  4. *
  5. * cp config.local.example.php config.local.php
  6. *
  7. * 优先级:命令行参数 > 环境变量(API_TEST_*)> 本文件 > config.php 的默认值。
  8. * 不需要的键删掉或留 null 即可。
  9. */
  10. return [
  11. // 默认服务器 alias(见 config.php 的 servers),或完整 base URL
  12. 'default_server' => 'local',
  13. // 测试账号:调 POST /v3/sessions 换 token。也可以直接给 token(优先)
  14. 'username' => 'test161',
  15. 'password' => null,
  16. 'token' => null,
  17. // 覆盖 fixtures.php 里的种子数据(换环境时用),只写要改的键
  18. 'fixtures' => [
  19. // 讨论写用例挂的句子:必须在测试账号自己的 channel 里、由测试账号编辑过
  20. // 'discussion_sentence' => 'ee5259be-5d1e-4408-a2a6-566a5773eef1',
  21. // 'discussion_channel' => '1721b7fa-e471-46fd-b860-64b9e79d370e',
  22. // agent 代写用例:归测试账号所有的 AI 模型 uid;不给则 SKIP
  23. // 'agent_model' => null,
  24. // email-certifications「已注册邮箱」用例;不给则 SKIP
  25. // 'registered_email' => 'someone@example.com',
  26. ],
  27. ];