26 lines
722 B
PHP
26 lines
722 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\E2E\Services\VCS;
|
||
|
|
||
|
use Tests\E2E\Scopes\Scope;
|
||
|
use Tests\E2E\Scopes\ProjectCustom;
|
||
|
use Tests\E2E\Scopes\SideServer;
|
||
|
use Tests\E2E\Client;
|
||
|
|
||
|
class VCSCustomServerTest extends Scope
|
||
|
{
|
||
|
use VCSBase;
|
||
|
use ProjectCustom;
|
||
|
use SideServer;
|
||
|
|
||
|
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'],
|
||
|
'x-appwrite-key' => $this->getProject()['apiKey'],
|
||
|
], $this->getHeaders()));
|
||
|
|
||
|
$this->assertEquals(401, $installation['headers']['status-code']);
|
||
|
}
|
||
|
}
|