| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 40 | public function testLogin(): void |
||
| 41 | { |
||
| 42 | $result = $this->get('/auth/login'); |
||
| 43 | |||
| 44 | $this->assertSame('OK', (string)$result->getBody()); |
||
| 45 | |||
| 46 | $cookies = $this->fetchCookies($result->getHeader('Set-Cookie')); |
||
| 47 | $this->assertTrue(isset($cookies['token'])); |
||
| 48 | $this->assertTrue(isset($cookies['sid'])); |
||
| 49 | |||
| 50 | $result = $this->get('/auth/token', [], [], $cookies); |
||
| 51 | |||
| 52 | $this->assertNotSame('none', (string)$result->getBody()); |
||
| 53 | } |
||
| 55 |