[wp-trac] [WordPress Trac] #48844: Unit test for wp()
WordPress Trac
noreply at wordpress.org
Fri Jan 24 16:45:01 UTC 2020
#48844: Unit test for wp()
-----------------------------------------+-----------------------------
Reporter: pbearne | Owner: SergeyBiryukov
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.4
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: has-unit-tests dev-feedback | Focuses:
-----------------------------------------+-----------------------------
Comment (by donmhico):
Thanks for the patch @pbearne. The test works fine when run separately
`phpunit --group=48844` after I added `@ticket` on it. But it fails on a
full test suite.
[[Image(https://core.trac.wordpress.org/raw-
attachment/ticket/48844/Screen%20Shot%202020-01-25%20at%2012.38.17%20AM.png)]]
I'm suspecting that somewhere in the test suite either or both `$wp_query`
and `$wp_the_query` was changed. Need some more digging.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48844#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list