/** * Check if null is returned when bundle mapping is empty. */ public function testGetDocumentMapping() { $manager = new Manager(null, $this->getClassMetadataCollectionMock(), $this->getMock('Symfony\\Components\\EventDispatcher\\EventDispatcher')); $this->assertNull($manager->getDocumentMapping('test')); }