1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00
appwrite/tests/e2e/Scopes/SideConsole.php

24 lines
406 B
PHP
Raw Normal View History

<?php
namespace Tests\E2E\Scopes;
trait SideConsole
{
2022-05-24 02:54:50 +12:00
public function getHeaders(): array
{
return [
'origin' => 'http://localhost',
2022-05-24 02:54:50 +12:00
'cookie' => 'a_session_console=' . $this->getRoot()['session'],
'x-appwrite-mode' => 'admin'
];
}
/**
* @return string
*/
public function getSide()
{
return 'console';
}
}