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

    r10761 r11737  
    1111        parent::setUp();
    1212
    13         $this->u1 = $this->factory->user->create( array(
     13        $this->u1 = self::factory()->user->create( array(
    1414            'display_name' => 'Unit Test',
    1515            'user_email'   => 'test1@example.com',
    1616        ) );
    1717
    18         $this->u2 = $this->factory->user->create( array(
     18        $this->u2 = self::factory()->user->create( array(
    1919            'display_name' => 'Unit Test2',
    2020            'user_email'   => 'test2@example.com',
Note: See TracChangeset for help on using the changeset viewer.