Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2024 04:30:23 PM (14 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/core/community-visibility.php

    r13533 r13980  
    1111        $this->old_user = get_current_user_id();
    1212        $this->logged_in_user = self::factory()->user->create();
    13         $this->set_current_user( $this->logged_in_user );
     13        self::set_current_user( $this->logged_in_user );
    1414
    1515        // Save a typical setting.
     
    2121
    2222    public function tear_down() {
    23         parent::tear_down();
    24         $this->set_current_user( $this->old_user );
     23        self::set_current_user( $this->old_user );
    2524        // Reset site to totally open.
    2625        delete_option( '_bp_community_visibility' );
     26        parent::tear_down();
    2727    }
    2828
Note: See TracChangeset for help on using the changeset viewer.