Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2024 04:30:23 PM (2 years ago)
Author:
espellcaste
Message:

Unit Tests: Conducted a thorough review of existing unit tests files and improved them to ensure robustness.

Props imath.

Closes https://github.com/buddypress/buddypress/pull/295
Fixes #9081

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/messages/class.bp-messages-thread.php

    r13859 r13980  
    572572                // Mark thread as read
    573573                $current_user = get_current_user_id();
    574                 $this->set_current_user( $u2 );
     574                self::set_current_user( $u2 );
    575575                messages_mark_thread_read( $t1 );
    576576
     
    578578                $this->assertFalse( wp_cache_get( 'thread_recipients_' . $t1, 'bp_messages' ) );
    579579
    580                 $this->set_current_user( $current_user );
     580                self::set_current_user( $current_user );
    581581        }
    582582
     
    674674                // Mark thread as unread
    675675                $current_user = get_current_user_id();
    676                 $this->set_current_user( $u2 );
     676                self::set_current_user( $u2 );
    677677                messages_mark_thread_unread( $t1 );
    678678
     
    680680                $this->assertFalse( wp_cache_get( 'thread_recipients_' . $t1, 'bp_messages' ) );
    681681
    682                 $this->set_current_user( $current_user );
     682                self::set_current_user( $current_user );
    683683        }
    684684
Note: See TracChangeset for help on using the changeset viewer.