Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2017 07:44:10 PM (7 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/bpGetNavMenuItems.php

    r10874 r11737  
    1010     */
    1111    public function test_top_level_link_should_point_to_displayed_user_for_loggedin_user() {
    12         $users = $this->factory->user->create_many( 2 );
     12        $users = self::factory()->user->create_many( 2 );
    1313
    1414        $this->set_current_user( $users[0] );
     
    3434     */
    3535    public function test_top_level_link_should_point_to_displayed_user_for_loggedout_user() {
    36         $user = $this->factory->user->create();
     36        $user = self::factory()->user->create();
    3737
    3838        $this->set_current_user( 0 );
Note: See TracChangeset for help on using the changeset viewer.