- Timestamp:
- 02/27/2015 03:00:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-user-query.php
r9533 r9561 6 6 */ 7 7 class BP_Tests_BP_User_Query_TestCases extends BP_UnitTestCase { 8 protected $old_current_user = 0;9 10 public function setUp() {11 parent::setUp();12 13 $this->old_current_user = get_current_user_id();14 $this->set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );15 }16 17 public function tearDown() {18 parent::tearDown();19 $this->set_current_user( $this->old_current_user );20 }21 22 8 /** 23 9 * Checks that user_id returns friends
Note: See TracChangeset
for help on using the changeset viewer.