[buddypress-trac] [BuddyPress Trac] #6009: Share fixtures across unit tests where appropriate

buddypress-trac noreply at wordpress.org
Fri Nov 14 14:01:23 UTC 2014


#6009: Share fixtures across unit tests where appropriate
--------------------------+------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  task          |      Status:  new
 Priority:  normal        |   Milestone:  2.2
Component:  Unit Tests    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by boonebgorges):

 In [changeset:"9140"]:
 {{{
 #!CommitTicketReference repository="" revision="9140"
 Move automated test mail handlers to `setUpBeforeClass()`.

 In many cases, creating data in BuddyPress (such as friendships) will
 generate
 an email notification. In order to avoid errors when generating fixtures,
 our
 automated suite places some filters on 'wp_mail'. However, these filters
 were
 previously added during `setUp()`, which is too late for test classes that
 create fixtures during `setUpBeforeClass()`.

 See #6009.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6009#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list