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/avatars.php

    r11256 r11737  
    2626        }
    2727
    28         $u = $this->factory->user->create();
     28        $u = self::factory()->user->create();
    2929
    3030        // get BP root blog's upload directory data
     
    3232
    3333        // create new subsite
    34         $blog_id = $this->factory->blog->create( array(
     34        $blog_id = self::factory()->blog->create( array(
    3535            'user_id' => $u,
    3636            'title'   => 'Test Title',
     
    5454        $this->clean_existing_avatars();
    5555
    56         $u = $this->factory->user->create();
     56        $u = self::factory()->user->create();
    5757        $this->assertFalse( bp_get_user_has_avatar( $u ) );
    5858    }
     
    6262     */
    6363    public function test_bp_get_user_has_avatar_has_avatar_uploaded() {
    64         $u = $this->factory->user->create();
     64        $u = self::factory()->user->create();
    6565
    6666        // Fake it
     
    176176     */
    177177    public function test_bp_core_fetch_avatar_class_attribute() {
    178         $u = $this->factory->user->create();
     178        $u = self::factory()->user->create();
    179179
    180180        $hw = 100;
Note: See TracChangeset for help on using the changeset viewer.