[wp-trac] [WordPress Trac] #35199: WP_UnitTest_Generator_Sequence is generating incorrect sequences
WordPress Trac
noreply at wordpress.org
Sun Mar 6 02:55:50 UTC 2016
#35199: WP_UnitTest_Generator_Sequence is generating incorrect sequences
------------------------------+----------------------
Reporter: OddOneOut | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Build/Test Tools | Version: 4.4
Severity: normal | Resolution: invalid
Keywords: | Focuses:
------------------------------+----------------------
Comment (by OddOneOut):
What about the current invalid behaviour i.e. "Post title 0, Post content
1, Post excerpt 2" (which should be "Post title 1, Post content 1, Post
excerpt 1")?
Also, the issue I'm mentioning here is not whether we should use
`$post1->post_title` or just "Post title 1" to test, but about not relying
on the global state to test. At least there should be a way to reset the
factory or disable the static incrementor (as I've said above).
Hopefully you guys will reconsider this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35199#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list