mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02: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));
|
$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…
x
Reference in New Issue
Block a user