Difficulty in unit testing, simulating callouts, and execution under a specific user context
Background I’m building multiple business applications within a community, and these apps heavily depend on making callouts to an ERP system for data verification, retrieval, or pushing data. To properly test the code in these applications, it’s crucial to run unit tests as community users. I’m utilizing the mock response interface to simulate API responses …