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