Passed
Push — main ( aa5a53...a9bb83 )
by Slawomir
04:36
created

SecurityHttpTrait::logout()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Tests\Modules\Security\Integration\Http;
4
5
use App\Tests\TestUtils\SerializationTrait;
6
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
7
8
trait SecurityHttpTrait
9
{
10
11
    use SerializationTrait;
12
13
    public function logout(): string
14
    {
15
        $client = $this->getClient();
16
        $client->request('POST', '/api/logout/');
17
        return $client->getResponse()->getContent();
18
    }
19
20
    /**
21
     * @return KernelBrowser
22
     */
23
    public abstract function getClient(): KernelBrowser;
24
}