Changeset 10545 for trunk/tests/phpunit/testcases/activity/actions.php
- Timestamp:
- 02/07/2016 04:55:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/actions.php
r9819 r10545 10 10 */ 11 11 public function test_bp_activity_catch_transition_post_type_status_publish() { 12 $bp = buddypress();13 14 12 register_post_type( 'foo', array( 15 13 'label' => 'foo', … … 29 27 30 28 _unregister_post_type( 'foo' ); 31 32 // Reset globals33 unset( $bp->activity->actions->activity->new_foo );34 $bp->activity->track = array();35 29 } 36 30 … … 40 34 */ 41 35 public function test_bp_activity_catch_transition_post_type_status_publish_to_publish() { 42 $bp = buddypress();43 44 36 register_post_type( 'foo', array( 45 37 'label' => 'foo', … … 69 61 70 62 _unregister_post_type( 'foo' ); 71 72 // Reset globals73 unset( $bp->activity->actions->activity->new_foo );74 $bp->activity->track = array();75 63 } 76 64 … … 80 68 */ 81 69 public function test_bp_activity_catch_transition_post_type_status_publish_password() { 82 $bp = buddypress();83 84 70 register_post_type( 'foo', array( 85 71 'label' => 'foo', … … 107 93 108 94 _unregister_post_type( 'foo' ); 109 110 // Reset globals111 unset( $bp->activity->actions->activity->new_foo );112 $bp->activity->track = array();113 95 } 114 96 … … 118 100 */ 119 101 public function test_bp_activity_catch_transition_post_type_status_publish_trash() { 120 $bp = buddypress();121 122 102 register_post_type( 'foo', array( 123 103 'label' => 'foo', … … 142 122 143 123 _unregister_post_type( 'foo' ); 144 145 // Reset globals146 unset( $bp->activity->actions->activity->new_foo );147 $bp->activity->track = array();148 124 } 149 125
Note: See TracChangeset
for help on using the changeset viewer.