Repository navigation
Commit 8323af2
committed
Tests: Guard REST context tests against empty endpoints.
Assert that the `endpoints` list is not empty before checking that each endpoint omits the `context` argument. This prevents the block pattern categories, edit site export, and URL details tests from passing without running their loop assertions.
Follow-up to [64048], [64049], and [64050].
Developed in: WordPress#13948
Props shailu25.
See #40538.
git-svn-id: https://develop.svn.wordpress.org/trunk@64077 602fd350-edb4-49c9-b593-d223f7449a821 parent f7616f3 commit 8323af2
3 files changed
Lines changed: 3 additions & 0 deletions
File tree
- tests/phpunit/tests/rest-api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
| 1066 | + | |
1066 | 1067 | | |
1067 | 1068 | | |
1068 | 1069 | | |
| |||
0 commit comments