getSourceGraphData() public method

Returns the source graph data
public getSourceGraphData ( integer $startDate, integer $endDate ) : array
$startDate integer
$endDate integer
return array
Beispiel #1
0
 public function testGetSourceGraphData()
 {
     $connector = new Connector($this->getAnalyticsServiceMock(), new Pool(new MemoryStore()), $this->getModulesSettingsMock());
     $this->assertEquals(array(array('ga_medium' => '(none)', 'ga_pageviews' => '8'), array('ga_medium' => 'organic', 'ga_pageviews' => '6')), $connector->getSourceGraphData(strtotime('-1 day', mktime(0, 0, 0)), mktime(0, 0, 0)));
 }