ac33d7828f
This reverts commit bf5f0a8419
.
22 lines
390 B
PHP
22 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';
|
|
}
|
|
}
|