Skip to content

Commit 0a40102

Browse files
authored
Merge pull request #4 from ByteInternet/fix_cancel_ehemeral_app_post
Fix cancel ephemeral app action
2 parents 309a671 + bde69ab commit 0a40102

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Service/EphemeralApp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function cancel(string $app): void
4242
{
4343
$url = sprintf(App::V2_APP_CANCEL_URL, $app);
4444

45-
$response = $this->client->api->delete($url);
45+
$response = $this->client->api->post($url);
4646

4747
$this->client->maybeThrowApiExceptions($response);
4848
}

tests/unit/Service/EphemeralAppTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testCancelEphemeralApp()
6262
$this->client->ephemeralApp->cancel('johndoe-eph123456');
6363

6464
$request = $this->responses->getLastRequest();
65-
$this->assertEquals('DELETE', $request->getMethod());
65+
$this->assertEquals('POST', $request->getMethod());
6666
$this->assertEquals('/v2/app/johndoe-eph123456/cancel/', $request->getUri());
6767
}
6868

0 commit comments

Comments
 (0)