Optimized tests for UserMenuSubscriber

This commit is contained in:
Kevin Frantz 2019-03-29 18:54:56 +01:00
parent fb4dd58cde
commit 8594ad82e7

View File

@ -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));
}
}
}