Exemplo n.º 1
0
 /**
  * @test
  */
 public function get_report_status_will_return_an_object_containing_the_downaload_id()
 {
     $client = $this->prophesize(Auth::class);
     $uploadTicket = new ReportTicket();
     $uploadTicket->setReportId('_a_job_id');
     $fakeResponse = $this->getFakeResponse($this->getReportStatus());
     $client->request('GET', Argument::any(), Argument::any())->willReturn($fakeResponse);
     $report = new Report($client->reveal());
     $reportTicket = $report->getReportStatus($uploadTicket);
     $this->assertEquals('report-download?id=4b22a2c9a361f6d8a8feb99c10745a66', $reportTicket->getUrl());
 }