public function testInstance()
 {
     /** @var \Mockery\Mock|\Hitmeister\Component\Api\Transfers\ReportProductDataImportFileErrorsTransfer $transfer */
     $transfer = \Mockery::mock('\\Hitmeister\\Component\\Api\\Transfers\\ReportProductDataImportFileErrorsTransfer');
     $transfer->shouldReceive('toArray')->once()->andReturn(['id_import_file' => 123]);
     $post = new ProductDataImportErrors($this->transport);
     $post->setTransfer($transfer);
     $this->assertInstanceOf('\\Hitmeister\\Component\\Api\\Transfers\\ReportProductDataImportFileErrorsTransfer', $post->getTransfer());
     $this->assertEquals([], $post->getParamWhiteList());
     $this->assertEquals('POST', $post->getMethod());
     $this->assertEquals('reports/product-data-import-file-errors/', $post->getURI());
     $body = $post->getBody();
     $this->assertArrayHasKey('id_import_file', $body);
 }
 /**
  * @param int $importFileId
  * @return int
  */
 public function productDataImportErrors($importFileId)
 {
     $data = new ReportProductDataImportFileErrorsTransfer();
     $data->id_import_file = (int) $importFileId;
     $endpoint = new ProductDataImportErrors($this->getTransport());
     $endpoint->setTransfer($data);
     $resultRequest = $endpoint->performRequest();
     return Response::extractId($resultRequest, '/reports/%d/');
 }