Skip to content

Add the parameter 2 to the continue instruction in product lookup to … #31

Add the parameter 2 to the continue instruction in product lookup to …

Add the parameter 2 to the continue instruction in product lookup to … #31

Triggered via push November 13, 2023 14:55
Status Success
Total duration 36s
Artifacts 1

infection.yaml

on: push
infection
25s
infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
infection: src/Client/AuthenticationMiddleware.php#L30
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public function sendRequest(RequestInterface $request) : ResponseInterface { $response = $this->tryRequest($request); - if (401 === $response->getStatusCode()) { + if (400 === $response->getStatusCode()) { $this->refreshToken(); $response = $this->tryRequest($request); }
infection: src/Client/AuthenticationMiddleware.php#L30
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public function sendRequest(RequestInterface $request) : ResponseInterface { $response = $this->tryRequest($request); - if (401 === $response->getStatusCode()) { + if (402 === $response->getStatusCode()) { $this->refreshToken(); $response = $this->tryRequest($request); }
infection: src/Client/Client.php#L44
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (empty($body)) { return; } - $response = $this->client->sendRequest($this->requestFactory->createRequest('POST', $this->uriFactory->createUri()->withPath('/crm/v3/Contacts/upsert')->withHost($this->host)->withScheme('https'))->withHeader('Content-Type', 'application/json')->withBody($this->streamFactory->createStream(json_encode(['data' => $body], \JSON_THROW_ON_ERROR)))); + $response = $this->client->sendRequest($this->requestFactory->createRequest('POST', $this->uriFactory->createUri()->withPath('/crm/v3/Contacts/upsert')->withHost($this->host)->withScheme('https'))->withHeader('Content-Type', 'application/json')->withBody($this->streamFactory->createStream(json_encode([], \JSON_THROW_ON_ERROR)))); $this->processResponse($response, $body); } /**
infection: src/Client/Client.php#L47
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ return; } $response = $this->client->sendRequest($this->requestFactory->createRequest('POST', $this->uriFactory->createUri()->withPath('/crm/v3/Contacts/upsert')->withHost($this->host)->withScheme('https'))->withHeader('Content-Type', 'application/json')->withBody($this->streamFactory->createStream(json_encode(['data' => $body], \JSON_THROW_ON_ERROR)))); - $this->processResponse($response, $body); + } /** * @throws ClientExceptionInterface
infection: src/Client/Client.php#L194
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } private function processResponse(ResponseInterface $response, array|null $body = []) : void { - if (400 === $response->getStatusCode()) { + if (399 === $response->getStatusCode()) { throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response); } if (403 === $response->getStatusCode()) {
infection: src/Client/Client.php#L194
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } private function processResponse(ResponseInterface $response, array|null $body = []) : void { - if (400 === $response->getStatusCode()) { + if (401 === $response->getStatusCode()) { throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response); } if (403 === $response->getStatusCode()) {
infection: src/Client/Client.php#L198
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if (400 === $response->getStatusCode()) { throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response); } - if (403 === $response->getStatusCode()) { + if (402 === $response->getStatusCode()) { throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.'); } if (404 === $response->getStatusCode()) {
infection: src/Client/Client.php#L198
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ if (400 === $response->getStatusCode()) { throw new BadRequestException('The format of the request is not correct. Please check the information sent.', $response); } - if (403 === $response->getStatusCode()) { + if (404 === $response->getStatusCode()) { throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.'); } if (404 === $response->getStatusCode()) {
infection: src/Client/Client.php#L202
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if (403 === $response->getStatusCode()) { throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.'); } - if (404 === $response->getStatusCode()) { + if (403 === $response->getStatusCode()) { throw new NotFoundException('What you are looking for does not exist. Please check your request.'); } if (413 === $response->getStatusCode()) {
infection: src/Client/Client.php#L202
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ if (403 === $response->getStatusCode()) { throw new ForbiddenException('You do not have the right to make this request. Please login before making your request or verify your rights.'); } - if (404 === $response->getStatusCode()) { + if (405 === $response->getStatusCode()) { throw new NotFoundException('What you are looking for does not exist. Please check your request.'); } if (413 === $response->getStatusCode()) {

Artifacts

Produced during runtime
Name Size
artifact Expired
186 KB