mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +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