2020-01-12 02:58:02 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\E2E\Scopes;
|
|
|
|
|
|
|
|
trait SideClient
|
|
|
|
{
|
2022-05-24 02:54:50 +12:00
|
|
|
public function getHeaders(): array
|
2020-01-12 02:58:02 +13:00
|
|
|
{
|
2020-01-13 10:28:26 +13:00
|
|
|
return [
|
|
|
|
'origin' => 'http://localhost',
|
2023-08-24 05:12:43 +12:00
|
|
|
'cookie' => 'a_session_'.$this->getProject()['$id'].'='.$this->getUser()['session'],
|
2020-01-13 10:28:26 +13:00
|
|
|
];
|
2020-01-12 02:58:02 +13:00
|
|
|
}
|
2020-11-26 19:31:59 +13:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getSide()
|
|
|
|
{
|
|
|
|
return 'client';
|
|
|
|
}
|
2020-01-12 02:58:02 +13:00
|
|
|
}
|