Repository navigation
Commit d05c9ce
committed
Tests: Reset changeset revisions support between Customizer tests.
Two tests in `Tests_WP_Customize_Manager` add `revisions` support to the `customize_changeset` post type but never remove it, and post type supports are not reset between tests. Any changeset published in a later test therefore has revisions enabled, so `_wp_customize_publish_changeset()` does not trash it. This breaks assertions that expect a published changeset to be trashed, as happens when the tests run in a different order or are inherited by a subclass. The support is now removed in `tear_down()`.
Follow-up to r38810, r47633.
See #65819.
git-svn-id: https://develop.svn.wordpress.org/trunk@64116 602fd350-edb4-49c9-b593-d223f7449a821 parent 069b360 commit d05c9ce
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
0 commit comments