[wp-trac] [WordPress Trac] #41860: Unit test for wp_auth_check()

WordPress Trac noreply at wordpress.org
Sun Oct 1 00:36:01 UTC 2017


#41860: Unit test for wp_auth_check()
------------------------------------+--------------------------
 Reporter:  pbearne                 |       Owner:  johnbillion
     Type:  enhancement             |      Status:  reviewing
 Priority:  low                     |   Milestone:  4.9
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch               |     Focuses:
------------------------------------+--------------------------

Comment (by birgire):

 Updated a little bit in [attachment:41860.4.patch]:

 - moved the clean-up before the assertion - see here in an unrelated
 ticket: [ticket:42044#comment:1].
 - changed {{{assertEquals()}}} to {{{assertSame()}}}, to avoid null, empty
 string and false being treated equally.

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


More information about the wp-trac mailing list