Skip to:
Content

BuddyPress.org


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

    r13873 r13980  
    1414        parent::set_up();
    1515        $this->current_user = get_current_user_id();
    16         $this->set_current_user( self::factory()->user->create() );
     16        self::set_current_user( self::factory()->user->create() );
    1717
    1818        $this->requesting_user_id = self::factory()->user->create();
     
    2222
    2323    public function tear_down() {
     24        self::set_current_user( $this->current_user );
     25
    2426        parent::tear_down();
    25         $this->set_current_user( $this->current_user );
    2627    }
    2728
     
    299300        $this->assertEmpty( $u1_notifications );
    300301    }
    301 
    302302}
Note: See TracChangeset for help on using the changeset viewer.