[wp-trac] [WordPress Trac] #29996: Improve tests for get_blogs_of_user()

WordPress Trac noreply at wordpress.org
Thu Oct 16 05:43:01 UTC 2014


#29996: Improve tests for get_blogs_of_user()
-------------------------+------------------------
 Reporter:  jeremyfelt   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.1
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  multisite
-------------------------+------------------------

Comment (by jeremyfelt):

 In [https://core.trac.wordpress.org/attachment/ticket/29996/29996.diff
 29996.diff], we:

 * Create 8 new sites rather than 10. This is pretty arbitrary, as we don't
 need all of them. It is nice to know that things work though.
 * Remove the user from multiple sites rather than only the first. This
 reduces the number of overall assertions that we make **and** helps to
 ensure that `get_blogs_of_user()` continues to provide accurate data.
 * Remove duplicate assertions for logged out users and deleted users,
 these are available in the single site test for `get_blogs_of_user()`. The
 one piece missing from the single site version is moved over.

 And... accidentally leave bad docs for the test method. :) Do we have doc
 standards for tests yet?

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


More information about the wp-trac mailing list