-
-
Save ksiomelo/159ad16dd4c747d47b40 to your computer and use it in GitHub Desktop.
This file contains 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
class TestOfNetworkAnniversaryInsight extends ThinkUpUnitTestCase { | |
public function setUp() { | |
parent::setUp(); | |
$this->builders = self::buildData(); | |
} | |
protected function buildData() { | |
//Insert test data into test table | |
$builders[] = FixtureBuilder::build('users', array('user_id'=>12, 'user_name'=>'jack', | |
'full_name'=>'Jack Dorsey', 'avatar'=>'avatar.jpg', 'location'=>'San Francisco', | |
'network'=>'twitter')); | |
//Insert test data into test table | |
$builders[] = FixtureBuilder::build('users', array('user_id'=>13, 'user_name'=>'zuck', | |
'full_name'=>'Mark Zuckerberg', 'avatar'=>'avatar.jpg', 'location'=>'San Francisco', | |
'network'=>'twitter')); | |
$builders[] = FixtureBuilder::build('posts', array('author_user_id'=>13, 'author_username'=>'zuck', | |
'post_text'=>'this is a test post', 'author_avatar'=>'avatar.jpg', 'author_follower_count'=>11, | |
'network'=>'twitter')); | |
$this->logger = Logger::getInstance(); | |
return $builders; | |
} | |
public function tearDown() { | |
// parent::tearDown(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment