- Timestamp:
- 01/19/2016 07:55:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/notifications.php
r9819 r10457 243 243 244 244 /** 245 * @group bp_activity_remove_screen_notifications 246 * @group mentions 247 * @ticket BP6687 248 */ 249 public function test_bp_activity_remove_screen_notifications_on_new_mentions_cleared() { 250 $this->create_notifications(); 251 252 $notifications = BP_Notifications_Notification::get( array( 253 'item_id' => $this->a1, 254 ) ); 255 256 // Double check it's there 257 $this->assertEquals( array( $this->a1 ), wp_list_pluck( $notifications, 'item_id' ) ); 258 $this->assertEquals( 1, bp_get_total_mention_count_for_user( $this->u1 ) ); 259 260 // Clear notifications for $this->u1 261 bp_activity_clear_new_mentions( $this->u1 ); 262 263 $notifications = BP_Notifications_Notification::get( array( 264 'item_id' => $this->a1, 265 ) ); 266 267 $this->assertEmpty( $notifications, 'Notifications should be cleared when new mention metas are removed' ); 268 $this->assertEmpty( bp_get_total_mention_count_for_user( $this->u1 ) ); 269 } 270 271 /** 245 272 * Creates two notifications for $u1, one of which is for mentions 246 273 */
Note: See TracChangeset
for help on using the changeset viewer.