fix tests

This commit is contained in:
Everly Precia Suresh
2023-01-16 17:46:57 +00:00
parent fcd67300ef
commit f57493e291
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ App::patch('/v1/project/:projectId')
$response->dynamic($project, Response::MODEL_PROJECT);
});
App::get('/v1/admin/:projectId/webhooks')
App::get('/v1/project/:projectId/webhooks')
->desc('List Webhooks')
->groups(['api', 'project'])
->label('scope', 'project.read')
@@ -166,7 +166,7 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals('Project Test 2', $team['body']['name']);
$this->assertNotEmpty($team['body']['$id']);
$response = $this->client->call(Client::METHOD_POST, '/admin', array_merge([
$response = $this->client->call(Client::METHOD_POST, '/projects', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
@@ -1229,7 +1229,7 @@ class ProjectsConsoleClientTest extends Scope
{
$id = $data['projectId'] ?? '';
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id . '/webhooks', array_merge([
$response = $this->client->call(Client::METHOD_GET, '/project/' . $id . '/webhooks', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), []);