mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Optimized tests for UserMenuSubscriber
This commit is contained in:
		| @@ -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)); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user