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

WordPress Trac noreply at wordpress.org
Tue Sep 12 11:07:53 UTC 2017


#41860: Unit test for wp_auth_check()
------------------------------------+------------------------------
 Reporter:  pbearne                 |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:                          |     Focuses:
------------------------------------+------------------------------

Comment (by birgire):

 Hi @pbearne

 It looks good to me.

 Just two remarks:

  - Missing @ticket annotation for each method? ... or is that only for bug
 referencing?
  - as the modified global state can affect other test methods, shouldn't
 we restore it, if we modify it?

 I updated the patch with this in mind in [attachment:41860.2.patch]

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


More information about the wp-trac mailing list