public function testGetTopActivitiesData()
 {
     $data = MongoUtils::getTopActivitiesData("www.missmotz.de", $this->from, $this->to, 'daily');
     $this->assertEquals('http://www.missmotz.de/my/url/9999', $data['data'][0]['url']);
     $this->assertEquals(2000, $data['data'][0]['total']);
     $this->assertEquals(2000, $data['data'][0]['pos']);
     $this->assertEquals(1600000, $data['data'][0]['contacts']);
     $this->assertEquals(2000, $data['data'][0]['clickbacks']);
 }
Example #2
0
 public function executeTable_top_activities(sfWebRequest $request)
 {
     $lDomainProfile = DomainProfileTable::getInstance()->find($this->pHostId);
     $this->pData = MongoUtils::getTopActivitiesData($lDomainProfile->getUrl(), $this->pDateFrom, $this->pDateTo, $this->pAggregation);
 }
Example #3
0
 public static function getYesterdaysTopActivitiesData($domains)
 {
     return MongoUtils::getTopActivitiesData($domains, date('Y-m-d', strtotime("1 day ago")), date('Y-m-d'), 'daily', 5);
 }