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