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