[wp-trac] [WordPress Trac] #35452: WP_UnitTestCase::set_permalink_structure() doesn't set all permastructures

WordPress Trac noreply at wordpress.org
Thu Jul 14 23:29:03 UTC 2016


#35452: WP_UnitTestCase::set_permalink_structure() doesn't set all permastructures
----------------------------------------+------------------------------
 Reporter:  johnbillion                 |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  high                        |   Milestone:  Awaiting Review
Component:  Build/Test Tools            |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch has-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by johnbillion):

 It looks like we have some cross-test leakage somewhere. Running this test
 on its own with `phpunit --filter Tests_Rewrite_Pretty_Permalinks` results
 in a failure:

 {{{
 1) Tests_Rewrite_Pretty_Permalinks::test_term_permalink
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'http://example.org/tag/term-18/'
 +'http://example.org/?tag=term-18'
 }}}

 But running it as part of the whole suite with `phpunit` or as part of the
 rewrite group with `phpunit --group rewrite` results in a pass.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35452#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list