1
0
Fork 0
mirror of synced 2024-06-17 10:14:50 +12:00
appwrite/tests/e2e/Scopes/SideClient.php
2022-05-23 14:54:50 +00:00

23 lines
390 B
PHP

<?php
namespace Tests\E2E\Scopes;
trait SideClient
{
public function getHeaders(): array
{
return [
'origin' => 'http://localhost',
'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $this->getUser()['session'],
];
}
/**
* @return string
*/
public function getSide()
{
return 'client';
}
}