Skip to content

Commit 632b072

Browse files
Merge pull request #2 from surplex/feature/UIY-3913_enhance_routes
UIY-3913 Change route for creating mocks, too
2 parents 5549f02 + 2bd713a commit 632b072

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15+
- name: Setup PHP with tools
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: '7.4'
19+
- uses: actions/checkout@v2
1520
- name: Validate composer.json and composer.lock
1621
run: composer validate
1722
- name: Cache Composer packages

src/Core/ApiMock.php

+1-1
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)