[buddypress-trac] [BuddyPress Trac] #7241: BP tests should reset page mappings before each test

buddypress-trac noreply at wordpress.org
Thu Sep 1 03:44:49 UTC 2016


#7241: BP tests should reset page mappings before each test
------------------------------+---------------------------
 Reporter:  boonebgorges      |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.7
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:                    |
------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11055"]:
 {{{
 #!CommitTicketReference repository="" revision="11055"
 Tests: Set up page mappings in `setUp()` rather than `setUpBeforeClass()`.

 Since https://core.trac.wordpress.org/changeset/38398, `wp_posts` data
 that has been committed will be deleted by `WP_UnitTestCase` after each
 test. So we need to ensure that the data exists before each test.

 Fixes #7241.
 }}}

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


More information about the buddypress-trac mailing list