Skip to content

Commit bd356a4

Browse files
author
Hofmeister
committed
UIY-3913 Change route for creating mocks, too
I thought that we could prevent changing that route, but we still see some errors with this. Therefore, the endpoint for CREATING responses was changed as well.
1 parent bfbf749 commit bd356a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/ApiMock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function setSessionID(string $sessionId)
9191
public function addResponse(ResponseInterface $response, int $order = 0, string $requestKey = null): bool
9292
{
9393
$res = $this->getClient()->post(
94-
'/' . ((strlen($this->getSessionID()) >= 1) ? '?session_id=' . $this->getSessionID() : ''),
94+
'/api-mock/create' . ((strlen($this->getSessionID()) >= 1) ? '?session_id=' . $this->getSessionID() : ''),
9595
[
9696
RequestOptions::JSON => [
9797
'status_code' => $response->getStatusCode(),

0 commit comments

Comments
 (0)