| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class U2fSubscriberTest extends TestCase |
||
| 20 | { |
||
| 21 | public function testSubscribedEvents() |
||
| 22 | { |
||
| 23 | $events = U2fSubscriber::getSubscribedEvents(); |
||
| 24 | |||
| 25 | $this->assertEquals(count($events), 2); |
||
| 26 | $this->assertArrayHasKey(SecurityEvents::INTERACTIVE_LOGIN, $events); |
||
| 27 | $this->assertArrayHasKey(KernelEvents::REQUEST, $events); |
||
| 28 | |||
| 29 | $this->assertTrue(method_exists(U2fSubscriber::class, $events[SecurityEvents::INTERACTIVE_LOGIN])); |
||
| 30 | $this->assertTrue(method_exists(U2fSubscriber::class, $events[KernelEvents::REQUEST])); |
||
| 31 | } |
||
| 33 |