| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | public function can_act_as_user(): void |
||
| 20 | { |
||
| 21 | if (!\method_exists(SymfonyKernelBrowser::class, 'loginUser')) { |
||
| 22 | $this->markTestSkipped(SymfonyKernelBrowser::class.'::loginUser() is only available in Symfony 5.1+.'); |
||
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | $this->browser() |
||
| 26 | ->throwExceptions() |
||
| 27 | ->actingAs(new User('kevin', 'pass')) |
||
| 28 | ->visit('/user') |
||
| 29 | ->assertSee('user: kevin/pass') |
||
| 30 | ; |
||
| 88 |