Skip to content

Commit 5549f02

Browse files
Merge pull request #1 from surplex/feature/UIY-3913_enhance_routes
UIY-3913 Change routes for system calls
2 parents fb283f4 + bfbf749 commit 5549f02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core/ApiMock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ public function addResponse(ResponseInterface $response, int $order = 0, string
112112
*/
113113
public function count(): int
114114
{
115-
return (int)(string)$this->getClient()->get('/?session_id=' . $this->getSessionID())->getBody();
115+
return (int)(string)$this->getClient()->get('/api-mock/count?session_id=' . $this->getSessionID())->getBody();
116116
}
117117

118118
/**
119119
* Remove all not retrieved mocks
120120
*/
121121
public function clear()
122122
{
123-
$this->getClient()->get('/clear-session?session_id=' . $this->getSessionID());
123+
$this->getClient()->get('/api-mock/clear-session?session_id=' . $this->getSessionID());
124124
}
125125

126126
/**
@@ -172,7 +172,7 @@ public function getClientRequest(string $requestKey, $sessionId = null)
172172
if (is_null($sessionId)) {
173173
$sessionId = $this->getSessionID();
174174
}
175-
$response = $this->getClient()->get('/client-request?session_id=' . $sessionId . '&request_key=' . $requestKey);
175+
$response = $this->getClient()->get('/api-mock/client-request?session_id=' . $sessionId . '&request_key=' . $requestKey);
176176
if (!empty($response)) {
177177
return json_decode($response->getBody()->getContents(), true);
178178
} else {

0 commit comments

Comments
 (0)