Skip to:
Content

BuddyPress.org

Changeset 10773


Ignore:
Timestamp:
05/15/2016 04:01:30 AM (9 years ago)
Author:
boonebgorges
Message:

More adventures in creating unit test fixtures.

Second verse, same as the first. See [10772].

See #6784.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/groups/types.php

    r10772 r10773  
    1212
    1313        buddypress()->groups->types = array();
    14 
    15         self::$u1 = $this->factory->user->create( array(
     14    }
     15
     16    public static function setUpBeforeClass() {
     17        $f = new BP_UnitTest_Factory();
     18
     19        self::$u1 = $f->user->create( array(
    1620            'user_email' => 'group-types-tests@example.com',
    1721            'user_login' => 'grouptypestests',
    1822        ) );
    19     }
    20 
    21     public static function setUpBeforeClass() {
    22         $f = new BP_UnitTest_Factory();
    23 
    24         self::$u1 = $f->user->create();
    2523    }
    2624
Note: See TracChangeset for help on using the changeset viewer.