|
@@ 111-123 (lines=13) @@
|
| 108 |
|
$this->assertEquals(self::REFRESH_TOKEN, $apiClient->getRefreshToken()); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
public function testGeoLocationPerformanceReportTimeoutException() |
| 112 |
|
{ |
| 113 |
|
$this->expectException(Exceptions\RequestTimeoutException::class); |
| 114 |
|
$apiClient = $this->getApiClient( |
| 115 |
|
$this->getRequestNewAccessTokenMock(), |
| 116 |
|
new ApiDetails('refreshToken', 'clientId', 'clientSecret', 'redirectUri', 'devToken'), |
| 117 |
|
$this->getClientProxyMock('Pending'), |
| 118 |
|
new Helper\File(), |
| 119 |
|
new Helper\Csv(), |
| 120 |
|
$this->getTimeHelperMock() |
| 121 |
|
); |
| 122 |
|
$apiClient->get(['TimePeriod', 'AccountName', 'AdGroupId'], 'GeoLocationPerformanceReport'); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
public function testGeoLocationPerformanceReportRequestErrorException() |
| 126 |
|
{ |
|
@@ 125-137 (lines=13) @@
|
| 122 |
|
$apiClient->get(['TimePeriod', 'AccountName', 'AdGroupId'], 'GeoLocationPerformanceReport'); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
public function testGeoLocationPerformanceReportRequestErrorException() |
| 126 |
|
{ |
| 127 |
|
$this->expectException(Exceptions\ReportRequestErrorException::class); |
| 128 |
|
$apiClient = $this->getApiClient( |
| 129 |
|
$this->getRequestNewAccessTokenMock(), |
| 130 |
|
new ApiDetails('refreshToken', 'clientId', 'clientSecret', 'redirectUri', 'devToken'), |
| 131 |
|
$this->getClientProxyMock('Error'), |
| 132 |
|
new Helper\File(), |
| 133 |
|
new Helper\Csv(), |
| 134 |
|
$this->getTimeHelperMock() |
| 135 |
|
); |
| 136 |
|
$apiClient->get(['TimePeriod', 'AccountName', 'AdGroupId'], 'GeoLocationPerformanceReport'); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
public function testPollGenerateReportSoapException() |
| 140 |
|
{ |