Skip to:
Content

BuddyPress.org

Changeset 9141


Ignore:
Timestamp:
11/14/2014 02:01:26 PM (6 years ago)
Author:
boonebgorges
Message:

Make BP_UnitTestCase::set_current_user() a static method.

This allows it to be called from outside of an object context.

See #6009.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r9140 r9141  
    311311     * @global BuddyPres $bp
    312312     */
    313     function set_current_user( $user_id ) {
     313    public static function set_current_user( $user_id ) {
    314314        global $bp;
    315315        $bp->loggedin_user->id = $user_id;
Note: See TracChangeset for help on using the changeset viewer.