Changeset 11809
- Timestamp:
- 01/10/2018 10:34:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/functions/bpActivityGetActions.php
r10545 r11809 10 10 11 11 public function setUp() { 12 parent::setUp(); 12 13 $bp = buddypress(); 13 14 … … 20 21 21 22 public function tearDown() { 23 parent::tearDown(); 22 24 $bp = buddypress(); 23 25 … … 146 148 */ 147 149 public function test_sort_new_post_type_twice() { 150 $reset_activity_track = buddypress()->activity->track; 151 148 152 $actions = bp_activity_get_actions(); 149 153 $expected = array( … … 164 168 ) ); 165 169 170 /* 171 * Reset manually as bp_activity_get_actions() -- at the top of this test -- 172 * sets ->track[] for the previously-registered post types. 173 */ 174 buddypress()->activity->track = bp_activity_get_post_types_tracking_args(); 175 166 176 $actions = bp_activity_get_actions(); 167 177 … … 175 185 176 186 $this->assertSame( $expected, wp_list_pluck( (array) $actions->blogs, 'key' ) ); 187 188 buddypress()->activity->track = $reset_activity_track; 177 189 } 178 190
Note: See TracChangeset
for help on using the changeset viewer.