1
0
Fork 0
mirror of synced 2024-07-01 12:40:34 +12:00
appwrite/tests/e2e/Services/Avatars/AvatarsCustomServerTest.php
2020-01-12 13:11:16 +02:00

30 lines
749 B
PHP

<?php
namespace Tests\E2E\Services\Avatars;
use Tests\E2E\Client;
use Tests\E2E\Scopes\ProjectCustom;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\SideServer;
class AvatarsCustomServerTest extends Scope
{
use ProjectCustom;
use SideServer;
public function testGetCreditCard():array
{
/**
* Test for FAILURE
*/
$response = $this->client->call(Client::METHOD_GET, '/avatars/credit-cards/visa', [
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$uid'],
'X-appwrite-key' => $this->getProject()['apiKey'],
]);
$this->assertEquals(401, $response['headers']['status-code']);
return [];
}
}