Created
June 21, 2014 19:13
-
-
Save paulgibbs/98890701a68202794570 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BP_Tests_PaulIsCool extends BP_UnitTestCase { | |
protected $user_ids = array(); | |
public function setUp() { | |
parent::setUp(); | |
$users = array( | |
// user_login, display_name | |
array( 'aardvark', 'Bob Smith' ), | |
array( 'alpaca red', 'William Quinn' ), | |
); | |
// Create some dummy users. | |
foreach( $users as $user ) { | |
$this->user_ids[ $user[0] ] = $this->factory->user->create( array( | |
'display_name' => $user[1], | |
'user_login' => $user[0], | |
) ); | |
} | |
// Create some dummy friendships. | |
friends_add_friend( $this->user_ids['alpaca red'], $this->user_ids['aardvark'], true ); | |
} | |
public function tearDown() { | |
parent::tearDown(); | |
} | |
public function test_PaulsDopeTest() { | |
$this->assertTrue( true ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment