While writing Test class for this scenario the biggest challenge we faced was, “isPortalEnable” field of the “User” object is not editable, to make it we need to take care of the below points:
- We need to create Two individual users as test data one user as System Administrator and another one as Portal User.
- After the First step, we must run the test as a System Administrator user and try to fetch the details of the Portal User which we had created earlier.
- As the last step, we should update the field’s value as false of “isPortalEnable“.
intforce software is a software development firm. With a fresh perspective and dedicated attention to each client, we provide a complete IT solution globally. By defining, designing, and developing solutions tailored to meet our clients’ business objectives, we ensure that our clients get the maximum return on their investment and support them in tackling evolving business and technological issues. Our mission is to provide the best customer service and expertise using the most practical and robust web technologies/software technologies to satisfy our clients’ IT objectives and to provide them with the business and competitive advantage they needed to succeed.
To learn more about intforce’s portfolio, visit: https://perigeon.com/portfolio/
To learn more about intforce’s Salesforce capabilities, visit: https://perigeon.com/salesforce/
Drop us a mail at email@example.com to discuss your salesforce requirement.