- Timestamp:
- 08/10/2021 04:16:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/messages/notifications.php
r11737 r13035 32 32 ) ); 33 33 34 add_filter( 'bp_messages_multiple_new_message_ notification', array( $this, 'notification_filter_callback' ) );34 add_filter( 'bp_messages_multiple_new_message_array_notification', array( $this, 'notification_filter_callback' ) ); 35 35 $n = messages_format_notifications( 'new_message', $n, '', 2, 'array' ); 36 remove_filter( 'bp_messages_multiple_new_message_ notification', array( $this, 'notification_filter_callback' ) );36 remove_filter( 'bp_messages_multiple_new_message_array_notification', array( $this, 'notification_filter_callback' ) ); 37 37 38 $this->assertSame( 'bp_messages_multiple_new_message_ notification', $this->filter_fired );38 $this->assertSame( 'bp_messages_multiple_new_message_array_notification', $this->filter_fired ); 39 39 } 40 40 41 41 /** 42 42 * @group messages_format_notifications 43 * @group imath 43 44 */ 44 45 public function test_friends_format_notifications_bp_messages_single_new_message_notification_nonstring_filter() { … … 56 57 ) ); 57 58 58 add_filter( 'bp_messages_single_new_message_ notification', array( $this, 'notification_filter_callback' ) );59 add_filter( 'bp_messages_single_new_message_array_notification', array( $this, 'notification_filter_callback' ) ); 59 60 $n = messages_format_notifications( 'new_message', $n, '', 1, 'array' ); 60 remove_filter( 'bp_messages_single_new_message_ notification', array( $this, 'notification_filter_callback' ) );61 remove_filter( 'bp_messages_single_new_message_array_notification', array( $this, 'notification_filter_callback' ) ); 61 62 62 $this->assertSame( 'bp_messages_single_new_message_ notification', $this->filter_fired );63 $this->assertSame( 'bp_messages_single_new_message_array_notification', $this->filter_fired ); 63 64 } 64 65 … … 80 81 ) ); 81 82 82 add_filter( 'bp_messages_multiple_new_message_ notification', array( $this, 'notification_filter_callback' ) );83 add_filter( 'bp_messages_multiple_new_message_string_notification', array( $this, 'notification_filter_callback' ) ); 83 84 $n = messages_format_notifications( 'new_message', $n, '', 2 ); 84 remove_filter( 'bp_messages_multiple_new_message_ notification', array( $this, 'notification_filter_callback' ) );85 remove_filter( 'bp_messages_multiple_new_message_string_notification', array( $this, 'notification_filter_callback' ) ); 85 86 86 $this->assertSame( 'bp_messages_multiple_new_message_ notification', $this->filter_fired );87 $this->assertSame( 'bp_messages_multiple_new_message_string_notification', $this->filter_fired ); 87 88 } 88 89 … … 104 105 ) ); 105 106 106 add_filter( 'bp_messages_single_new_message_ notification', array( $this, 'notification_filter_callback' ) );107 add_filter( 'bp_messages_single_new_message_string_notification', array( $this, 'notification_filter_callback' ) ); 107 108 $n = messages_format_notifications( 'new_message', $n, '', 1 ); 108 remove_filter( 'bp_messages_single_new_message_ notification', array( $this, 'notification_filter_callback' ) );109 remove_filter( 'bp_messages_single_new_message_string_notification', array( $this, 'notification_filter_callback' ) ); 109 110 110 $this->assertSame( 'bp_messages_single_new_message_ notification', $this->filter_fired );111 $this->assertSame( 'bp_messages_single_new_message_string_notification', $this->filter_fired ); 111 112 } 112 113
Note: See TracChangeset
for help on using the changeset viewer.