Skip to:
Content

BuddyPress.org


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

    r13314 r13980  
    1212        parent::set_up();
    1313        $this->current_user = get_current_user_id();
    14         $this->set_current_user( self::factory()->user->create() );
     14        self::set_current_user( self::factory()->user->create() );
    1515
    1616        $this->friend = self::factory()->user->create();
     
    1919
    2020    public function tear_down() {
     21        self::set_current_user( $this->current_user );
    2122        parent::tear_down();
    22         $this->set_current_user( $this->current_user );
    2323    }
    2424
Note: See TracChangeset for help on using the changeset viewer.