| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function testExecute(): void |
||
| 31 | { |
||
| 32 | $this->router->generate('core23_lastfm_check', [], UrlGeneratorInterface::ABSOLUTE_URL) |
||
| 33 | ->willReturn('/start') |
||
| 34 | ; |
||
| 35 | |||
| 36 | $this->authService->getAuthUrl('/start') |
||
| 37 | ->willReturn('https://lastFm/login') |
||
| 38 | ; |
||
| 39 | |||
| 40 | $action = new StartAuthAction( |
||
| 41 | $this->authService->reveal(), |
||
| 42 | $this->router->reveal() |
||
| 43 | ); |
||
| 44 | |||
| 45 | $this->assertSame('https://lastFm/login', $action()->getTargetUrl()); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |