Changeset 9366 for trunk/tests/phpunit/testcases/blogs/activity.php
- Timestamp:
- 01/16/2015 10:02:01 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/blogs/activity.php
r9194 r9366 284 284 $this->assertEquals( $this->comment_post_id, $p ); 285 285 } 286 287 /** 288 * @ticket BP6126 289 */ 290 public function test_check_activity_actions_are_set_when_creating_activity_object() { 291 $bp = buddypress(); 292 293 if ( isset( $bp->activity->actions ) ) { 294 unset( $bp->activity->actions ); 295 } 296 297 $u = $this->factory->user->create(); 298 $p = $this->factory->post->create( array( 'post_author' => $u, ) ); 299 $a = $this->factory->activity->create( array( 300 'component' => buddypress()->blogs->id, 301 'item_id' => 1, 302 'secondary_item_id' => $p, 303 'type' => 'new_blog_post', 304 'user_id' => $u, 305 ) ); 306 307 $a_obj = new BP_Activity_Activity( $a ); 308 $this->assertTrue( ! empty( $a_obj->action ) ); 309 310 } 311 286 312 /** 287 313 * Dopey passthrough method so we can check that the correct values
Note: See TracChangeset
for help on using the changeset viewer.