aya-abdallah-FOO commented on PR #6197:
URL: https://github.com/apache/fineract/pull/6197#issuecomment-5176586041

   > Can you add an integration / E2E test case to cover this?
   
   @adamsaghy  Done! Added EntityToEntityMappingIntegrationTest with two 
integration tests covering this fix:                                            
                                        
                                                                                
                                                                                
                       
     1. testOfficeUserSeesOnlyOwnOfficeMappingsWhenFromIdIsZero — Creates two 
sibling child offices (A and B), maps both to a loan product, then queries GET  
                         
     /entitytoentitymapping/{relId}/0/0 as a user belonging to Office A. 
Asserts that only Office A's mapping is returned and Office B's is not visible. 
                              
     2. testHeadOfficeUserSeesAllDescendantOfficeMappingsWhenFromIdIsZero — 
Same setup, queried as the superadmin (Head Office). Asserts both mappings are 
visible since Head Office is
     the root of the hierarchy.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to