public function doTrackPageView($documentTitle) { $url = $this->getUrlTrackPageView($documentTitle); return $this->sendRequest($url); }
public function test_response_ShouldContainBulkTrackingApiResponse() { $this->tracker->doTrackPageView('Test'); $this->tracker->doTrackPageView('Test'); // test skipping invalid site errors $this->tracker->setIdSite(5); $this->tracker->doTrackPageView('Test'); $response = $this->tracker->doBulkTrack(); $this->assertEquals('{"status":"success","tracked":2,"invalid":1}', $response); }