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