public function testGetContent() { $params = $this->getParams(); $_SERVER['HTTP_USER_AGENT'] = "google"; $obj = new SellerRatings($params); $res = $obj->getContent(); $this->assertNotEmpty($res); }
public static function newInstance() { if (!self::$instance instanceof self) { self::$instance = new self(); } return self::$instance; }
function update_rating($seller, $user, $rating) { return SellerRatings::newInstance()->updateRatingsData($seller, $user, $rating); }
} if(!Shoutbox::newInstance()->checkTable()){ Shoutbox::newInstance()->import('sql/shoutbox.sql'); } if(!Testimonial::newInstance()->checkTable()){ Testimonial::newInstance()->import('sql/testimonial.sql'); } if(!FacebookClassified::newInstance()->checkTable()){ FacebookClassified::newInstance()->import('sql/facebook.sql'); } if(!FacebookUser::newInstance()->checkTable()){ FacebookUser::newInstance()->import('sql/facebookuser.sql'); } */ if (!SellerRatings::newInstance()->checkTable()) { SellerRatings::newInstance()->import('sql/seller_ratings.sql'); } if (!WatchList::newInstance()->checkTable()) { WatchList::newInstance()->import('sql/watchlist.sql'); } if (!UniqueCounter::newInstance()->checkTable()) { UniqueCounter::newInstance()->import('sql/unique-counter.sql'); } if (!PaidAds::newInstance()->checkTable()) { PaidAds::newInstance()->import('sql/paid-ads.sql'); } if (!Subscriber::newInstance()->checkTable()) { Subscriber::newInstance()->import('sql/subscriber.sql'); } /** classified DATABASE FUNCTION