summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-02-22 02:27:58 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-02-22 02:41:25 +0100
commitb3eb728565233617cda3c9860cada14617d0e70b (patch)
tree65951061553720d3e30e91e012bf283ad881b29c /tests
parentfb60f1dc4e399a622e97ddbf6f822c6b024b59f5 (diff)
Prefix fake endpoint to be used from integration tests
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FakeRecordingServer.php2
-rw-r--r--tests/integration/features/bootstrap/RecordingTrait.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/features/bootstrap/FakeRecordingServer.php b/tests/integration/features/bootstrap/FakeRecordingServer.php
index c26b9f8e3..5d8a1f6d2 100644
--- a/tests/integration/features/bootstrap/FakeRecordingServer.php
+++ b/tests/integration/features/bootstrap/FakeRecordingServer.php
@@ -63,7 +63,7 @@ if (preg_match('/\/api\/v1\/welcome/', $_SERVER['REQUEST_URI'])) {
'data' => $data,
];
file_put_contents($receivedRequestsFile, json_encode($receivedRequests));
-} elseif (preg_match('/requests/', $_SERVER['REQUEST_URI'])) {
+} elseif (preg_match('/\/fake\/requests/', $_SERVER['REQUEST_URI'])) {
if (!file_exists($receivedRequestsFile)) {
return;
}
diff --git a/tests/integration/features/bootstrap/RecordingTrait.php b/tests/integration/features/bootstrap/RecordingTrait.php
index 70e39f8c8..f2a1d9833 100644
--- a/tests/integration/features/bootstrap/RecordingTrait.php
+++ b/tests/integration/features/bootstrap/RecordingTrait.php
@@ -91,7 +91,7 @@ trait RecordingTrait {
}
private function getRecordingServerReceivedRequests() {
- $url = 'http://' . $this->recordingServerAddress . '/requests';
+ $url = 'http://' . $this->recordingServerAddress . '/fake/requests';
$client = new Client();
$response = $client->get($url);