- Timestamp:
- 08/13/2022 08:58:51 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/notifications.php
r12222 r13314 12 12 protected $a2; 13 13 14 public function set Up() {15 parent::set Up();14 public function set_up() { 15 parent::set_up(); 16 16 $this->current_user = get_current_user_id(); 17 17 $this->u1 = self::factory()->user->create(); … … 23 23 * When updating an activity, the following filter is fired to prevent sending more than one 24 24 * notification. Once we've reached this filter all at_mentions tests fails so we need to 25 * temporarly remove it and restore it in $this->tear Down()25 * temporarly remove it and restore it in $this->tear_down() 26 26 */ 27 27 remove_filter( 'bp_activity_at_name_do_notifications', '__return_false' ); 28 28 } 29 29 30 public function tear Down() {30 public function tear_down() { 31 31 $this->set_current_user( $this->current_user ); 32 parent::tear Down();32 parent::tear_down(); 33 33 34 34 // Restore the filter … … 310 310 $multiple = 'You have 2 new mentions'; 311 311 312 $this->assert Contains( $single, $format_tests['string_single'] );313 $this->assert Contains( $single, $format_tests['array_single']['text'] );314 $this->assert Contains( $multiple, $format_tests['string_multiple'] );315 $this->assert Contains( $multiple, $format_tests['array_multiple']['text'] );312 $this->assertStringContainsString( $single, $format_tests['string_single'] ); 313 $this->assertStringContainsString( $single, $format_tests['array_single']['text'] ); 314 $this->assertStringContainsString( $multiple, $format_tests['string_multiple'] ); 315 $this->assertStringContainsString( $multiple, $format_tests['array_multiple']['text'] ); 316 316 317 317 // Check filters
Note: See TracChangeset
for help on using the changeset viewer.