Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2024 04:30:23 PM (22 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/routing/members.php

    r13720 r13980  
    1414        $this->old_current_user = get_current_user_id();
    1515        $this->permalink_structure = get_option( 'permalink_structure', '' );
    16         $this->set_current_user( self::factory()->user->create( array( 'user_login' => 'paulgibbs', 'role' => 'subscriber' ) ) );
     16        self::set_current_user( self::factory()->user->create( array( 'user_login' => 'paulgibbs', 'role' => 'subscriber' ) ) );
    1717    }
    1818
    1919    public function tear_down() {
    20         $this->set_current_user( $this->old_current_user );
     20        self::set_current_user( $this->old_current_user );
    2121        $this->set_permalink_structure( $this->permalink_structure );
     22
    2223        parent::tear_down();
    2324    }
Note: See TracChangeset for help on using the changeset viewer.