Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2017 07:44:10 PM (4 years ago)
Author:
boonebgorges
Message:

Use static factory method throughout PHPUnit tests.

See #7620.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/nav/bpCoreNewNavItem.php

    r11091 r11737  
    1212        $bp_nav = buddypress()->bp_nav;
    1313
    14         $u = $this->factory->user->create();
     14        $u = self::factory()->user->create();
    1515        $old_current_user = get_current_user_id();
    1616        $this->set_current_user( $u );
     
    5252        $bp_nav = buddypress()->bp_nav;
    5353
    54         $u = $this->factory->user->create();
    55         $g = $this->factory->group->create();
     54        $u = self::factory()->user->create();
     55        $g = self::factory()->group->create();
    5656        $old_current_user = get_current_user_id();
    5757        $this->set_current_user( $u );
     
    143143        $bp_nav = buddypress()->bp_nav;
    144144
    145         $u = $this->factory->user->create();
    146         $u2 = $this->factory->user->create();
     145        $u = self::factory()->user->create();
     146        $u2 = self::factory()->user->create();
    147147        $old_current_user = get_current_user_id();
    148148        $this->set_current_user( $u2 );
     
    178178        $bp_nav = buddypress()->bp_nav;
    179179
    180         $u = $this->factory->user->create();
    181         $u2 = $this->factory->user->create();
     180        $u = self::factory()->user->create();
     181        $u2 = self::factory()->user->create();
    182182        $old_current_user = get_current_user_id();
    183183        $this->set_current_user( $u2 );
Note: See TracChangeset for help on using the changeset viewer.