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

    r9819 r11737  
    1010     */
    1111    public function test_bp_get_group_has_avatar_no_avatar_uploaded() {
    12         $g = $this->factory->group->create();
     12        $g = self::factory()->group->create();
    1313        $this->assertFalse( bp_get_group_has_avatar( $g ) );
    1414    }
     
    1818     */
    1919    public function test_bp_get_group_has_avatar_has_avatar_uploaded() {
    20         $g = $this->factory->group->create();
     20        $g = self::factory()->group->create();
    2121
    2222        // Fake it
Note: See TracChangeset for help on using the changeset viewer.