Skip to:
Content

BuddyPress.org


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

    r12606 r13980  
    9999        // Switch user so we have access to non-public blogs
    100100        $old_user = get_current_user_id();
    101         $this->set_current_user( $u );
     101        self::set_current_user( $u );
    102102
    103103        $b1 = self::factory()->blog->create();
     
    177177        }
    178178
    179         $this->set_current_user( $old_user );
     179        self::set_current_user( $old_user );
    180180    }
    181181
     
    193193        // Switch user so we have access to non-public blogs
    194194        $old_user = get_current_user_id();
    195         $this->set_current_user( $u );
     195        self::set_current_user( $u );
    196196
    197197        $b1 = self::factory()->blog->create();
     
    230230        $this->assertFalse( wp_cache_get( $b2, 'bp_blog_meta' ) );
    231231
    232         $this->set_current_user( $old_user );
     232        self::set_current_user( $old_user );
    233233    }
    234234
Note: See TracChangeset for help on using the changeset viewer.