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

    r11256 r11737  
    1111        }
    1212
    13         $b = $this->factory->blog->create();
    14         $u = $this->factory->user->create();
     13        $b = self::factory()->blog->create();
     14        $u = self::factory()->user->create();
    1515
    1616        $this->set_current_user( $u );
     
    3333        }
    3434
    35         $b = $this->factory->blog->create();
    36         $u = $this->factory->user->create();
     35        $b = self::factory()->blog->create();
     36        $u = self::factory()->user->create();
    3737
    3838        $this->set_current_user( $u );
Note: See TracChangeset for help on using the changeset viewer.