[buddypress-trac] [BuddyPress Trac] #7620: Update shared fixture architecture for WP 4.4+

buddypress-trac noreply at wordpress.org
Fri Nov 3 19:28:57 UTC 2017

#7620: Update shared fixture architecture for WP 4.4+
 Reporter:  boonebgorges      |      Owner:  netweb
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  3.0
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
 WordPress 4.4 saw some changes in the way shared fixtures are handled. The

 a. The factory should be fetched using `self::factory()` rather than
 `$this->factory`. This allows better consistency in iterators across all
 b. Shared fixtures should be created in `wpSetUpBeforeClass()` rather than
 `setUpBeforeClass()`, and should use the `$factory` object passed to the
 method. (This also helps to keep incrementors synced.)
 c. There's no longer a need to clean up core data (posts, users, etc) in
 `tearDownAfterClass()` - WP does it automatically, using
 `_delete_all_data()`. At the very least, we can take advantage of this. We
 might also consider implementing our own version of the same thing.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7620>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list