/** @dataProvider provideApiClients */ public function testQueue(Client $client, $options) { $api = $client->getReportApi(); $response = $api->queueReport(array('reportSuiteID' => $options['reportSuite'], 'metrics' => array(array('id' => 'pageviews')), 'locale' => "en_US")); $this->assertTrue(isset($response['reportID'])); $this->assertNotEquals($response['reportID'], 0); }
public function testInjectApi() { $client = new Client(); $reportApiMock = $this->getMockBuilder('AdobeMarketingCloud\\ApiInterface')->getMock(); $client->setApi('report', $reportApiMock); $this->assertSame($reportApiMock, $client->getReportApi()); }