mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Pass deployment id as param
This commit is contained in:
@@ -676,20 +676,17 @@ class FunctionsCustomServerTest extends Scope
|
||||
*/
|
||||
public function testUpdateDeployment($data): array
|
||||
{
|
||||
var_dump("data");
|
||||
var_dump($data);
|
||||
/**
|
||||
* Test for SUCCESS
|
||||
*/
|
||||
$dateValidator = new DatetimeValidator();
|
||||
|
||||
$response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([
|
||||
$response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), []);
|
||||
|
||||
var_dump("response");
|
||||
var_dump($response);
|
||||
], $this->getHeaders()), [
|
||||
'deploymentId' => $data['deploymentId'],
|
||||
]);
|
||||
|
||||
$this->assertEquals(200, $response['headers']['status-code']);
|
||||
$this->assertNotEmpty($response['body']['$id']);
|
||||
|
||||
Reference in New Issue
Block a user