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/activity/functions/bpActivityGetCommentDepth.php

    r11413 r11737  
    1010     */
    1111    public function test_depth_inside_activity_comment_loop() {
    12         $u = $this->factory->user->create();
     12        $u = self::factory()->user->create();
    1313
    1414        // create an activity update
    15         $parent_activity = $this->factory->activity->create( array(
     15        $parent_activity = self::factory()->activity->create( array(
    1616            'type'    => 'activity_update',
    1717            'user_id' => $u
     
    7777     */
    7878    public function test_depth_outside_of_activity_comment_loop() {
    79         $u = $this->factory->user->create();
     79        $u = self::factory()->user->create();
    8080
    8181        // create an activity update
    82         $parent_activity = $this->factory->activity->create( array(
     82        $parent_activity = self::factory()->activity->create( array(
    8383            'type'    => 'activity_update',
    8484            'user_id' => $u
Note: See TracChangeset for help on using the changeset viewer.