Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2024 04:30:23 PM (13 months 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/cache.php

    r13414 r13980  
    145145        // delete thread
    146146        // to outright delete a thread, both recipients must delete it
    147         $this->set_current_user( $u1 );
     147        self::set_current_user( $u1 );
    148148        messages_delete_thread( $t1 );
    149         $this->set_current_user( $u2 );
     149        self::set_current_user( $u2 );
    150150        messages_delete_thread( $t1 );
    151151
     
    155155
    156156        // cleanup
    157         $this->set_current_user( $this->old_current_user );
     157        self::set_current_user( $this->old_current_user );
    158158    }
    159159
Note: See TracChangeset for help on using the changeset viewer.