mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Optimized tests for UserMenuSubscriber
This commit is contained in:
parent
fb4dd58cde
commit
8594ad82e7
@ -85,4 +85,13 @@ class UserMenuSubscriberIntegrationTest extends KernelTestCase
|
||||
}
|
||||
$this->assertEquals(count($children), count($unauthentificatedItems));
|
||||
}
|
||||
|
||||
public function testGetSubscribedEvents(): void
|
||||
{
|
||||
$subscribedEvents = $this->subscriber->getSubscribedEvents();
|
||||
$reflectionClass = new \ReflectionClass($this->subscriber);
|
||||
foreach ($subscribedEvents as $method) {
|
||||
$this->assertTrue($reflectionClass->hasMethod($method));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user