/** * Uploads the prepared data from the * preparePeopleUploadData class method. **/ public function testUploadPreparedData() { $headers = $this->getStaticTestFieldIndentifiers(); $body = array(); /** * Here we simulate at least 10 lines for uploading. * Otherwise this would cause errors * and we don't expect that. **/ for ($i = 0; $i < 5; $i++) { $body = array_merge($body, $this->getStaticTestPeopleValues()); } $preparedData = CSVFileService::preparePeopleUploadData($headers, $body); $response = CSVFileService::uploadPreparedData($preparedData); $this->assertResponseSuccess($response); $responseData = json_decode($response->getBody()->getContents()); }