Repository navigation
Commit f94fd86
committed
Build/Test Tools: Tidy the live AI provider tests and document their constants.
Removes the unregister loops that ran before the core abilities are registered, resolves a named model once instead of on every request, and catches client errors apart from network and server errors.
Documents the key and model constants in `wp-tests-config-sample.php` and `.env.example`, and says that the keys reach the PHP container that serves the local site.
See #66707.1 parent ddc4861 commit f94fd86
3 files changed
Lines changed: 21 additions & 13 deletions
File tree
- tests/phpunit/tests/ai-client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 121 | | |
129 | 122 | | |
130 | 123 | | |
| |||
242 | 235 | | |
243 | 236 | | |
244 | 237 | | |
245 | | - | |
246 | | - | |
| 238 | + | |
| 239 | + | |
247 | 240 | | |
248 | 241 | | |
249 | 242 | | |
| 243 | + | |
| 244 | + | |
250 | 245 | | |
251 | 246 | | |
252 | 247 | | |
253 | 248 | | |
254 | 249 | | |
| 250 | + | |
255 | 251 | | |
256 | 252 | | |
257 | 253 | | |
| |||
273 | 269 | | |
274 | 270 | | |
275 | 271 | | |
276 | | - | |
277 | | - | |
| 272 | + | |
| 273 | + | |
278 | 274 | | |
279 | 275 | | |
280 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
| |||
0 commit comments