[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9

WordPress Trac noreply at wordpress.org
Fri Nov 26 12:28:41 UTC 2021


#53363: Test tool and unit test improvements for 5.9
--------------------------------------+---------------------
 Reporter:  desrosj                   |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  5.9
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 Replying to [comment:125 jrf]:
 > The expectation was just set too late in the test code.

 Yeah, I was considering moving the `expectOutputRegex()` call instead, but
 in my understanding that would mean `restore_previous_locale()` would have
 to run after it and could potentially never be called in case of failure,
 affecting other tests.

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


More information about the wp-trac mailing list