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/class-bp-attachment.php

    r11540 r11737  
    224224        $bp->displayed_user = new stdClass;
    225225
    226         $u1 = $this->factory->user->create();
     226        $u1 = self::factory()->user->create();
    227227        $bp->displayed_user->id = $u1;
    228228
     
    274274        $reset_current_group = $bp->groups->current_group;
    275275
    276         $g = $this->factory->group->create();
     276        $g = self::factory()->group->create();
    277277
    278278        $bp->groups->current_group = groups_get_group( $g );
     
    348348        $bp->displayed_user = new stdClass;
    349349
    350         $u1 = $this->factory->user->create();
     350        $u1 = self::factory()->user->create();
    351351        $bp->displayed_user->id = $u1;
    352352
Note: See TracChangeset for help on using the changeset viewer.