24 lines
659 B
PHP
24 lines
659 B
PHP
<?php
|
|
|
|
namespace Tests\E2E\Services\VCS;
|
|
|
|
use Tests\E2E\Scopes\Scope;
|
|
use Tests\E2E\Scopes\ProjectCustom;
|
|
use Tests\E2E\Scopes\SideClient;
|
|
use Tests\E2E\Client;
|
|
|
|
class VCSCustomClientTest extends Scope
|
|
{
|
|
use VCSBase;
|
|
use ProjectCustom;
|
|
use SideClient;
|
|
|
|
public function testGetInstallation(string $installationId = 'randomString'): void
|
|
{
|
|
$installation = $this->client->call(Client::METHOD_GET, '/vcs/installations/' . $installationId, array_merge([
|
|
'x-appwrite-project' => $this->getProject()['$id'],
|
|
], $this->getHeaders()));
|
|
|
|
$this->assertEquals(401, $installation['headers']['status-code']);
|
|
}
|
|
}
|