Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testBypassCheck() |
||
11 | { |
||
12 | $check = IsBypassedCheck::fromDefault(); |
||
13 | |||
14 | $request = new ServerRequest([], [], '/', 'GET'); |
||
15 | |||
16 | $this->assertFalse($check($request)); |
||
17 | |||
18 | $request = $request->withAttribute('TheCodingMachine\\BypassCsrf', true); |
||
19 | |||
20 | $this->assertTrue($check($request)); |
||
21 | } |
||
22 | } |
||
23 |