Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2017 07:44:10 PM (2 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/notifications/class-bp-notifications-template.php

    r10487 r11737  
    1212     */
    1313    public function test_pagination_params_in_url_should_be_passed_to_query() {
    14         $u = $this->factory->user->create();
     14        $u = self::factory()->user->create();
    1515
    1616        $notifications = array();
    1717        for ( $i = 1; $i <= 6; $i++ ) {
    18             $notifications[] = $this->factory->notification->create( array(
     18            $notifications[] = self::factory()->notification->create( array(
    1919                'component_name' => 'activity',
    2020                'secondary_item_id' => $i,
Note: See TracChangeset for help on using the changeset viewer.