/** * @test */ public function getFriendsCount() { $user2 = $this->getUser("test2"); $this->eq(2, Follower::getFriendsCount($user2->id)); $user3 = $this->getUser("test3"); $this->eq(1, Follower::getFriendsCount($user3->id)); }
protected function _getUserData($userId) { return array("friends" => Follower::getFriendsCount($userId), "followers" => Follower::getFollowersCount($userId), "statuses" => Status::getCountByUserId($userId), "comment" => Status::getLatestCommentByUserId($userId)); }