Commit 50ad424
committed
Tests: Add coverage for AI Client prompts when AI is unsupported
Adds a test to ensure `WP_AI_Client_Prompt_Builder::generate_result()` returns a `WP_Error` with the `prompt_prevented` code and the AI-disabled message when `wp_supports_ai()` returns false.
Follow-up for #64591.
Props nimeshatxecurify.
Fixes #65422.
git-svn-id: https://develop.svn.wordpress.org/trunk@62556 602fd350-edb4-49c9-b593-d223f7449a821 parent f56b7f7 commit 50ad424
1 file changed
Lines changed: 17 additions & 0 deletions
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2561 | 2561 | | |
2562 | 2562 | | |
2563 | 2563 | | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
2564 | 2581 | | |
2565 | 2582 | | |
2566 | 2583 | | |
| |||
0 commit comments