mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix tests
This commit is contained in:
@@ -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()), []);
|
||||
|
||||
Reference in New Issue
Block a user