-
How to assign permission set in test class?
I have set OWD to private and create a permission set to give access to object. We have removed all the object settings access from the concerned profile. Previously with OWD set to private, profile based object access was there. Now all the test classes are getting failed. Error is coming in test classes that User must have Read Access to the record. So what should I do to assign permission set in test class so that my all test classes and its methods run perfectly.
Log In to reply.
Popular Salesforce Blogs
Salesforce Shield Platform Encryption Guide
Shield Platform Encryption As organizations store more sensitive data, like actually recognizable data (PII), in the cloud, they need to guarantee the protection and classification…
Knowledge of Sandboxes | Types of Sandbox in Salesforce
What is the Sandbox in Salesforce? A Sandbox is an isolated testing environment wherein the users can execute or run programs and files without affecting…
What’s New In Salesforce DX Open Beta?
Last year Dreamforce gave us another mind blowing way to manage and develop Salesforce apps in a lucid fashion throughout the entire app lifecycle. This…
Popular Salesforce Videos
Why To Sell Your SAAS Application On Salesforce AppExchange ?
From unparalleled market reach to seamless integration and trusted security, explore the benefits that await SAAS entrepreneurs on Salesforce AppExchange. Watch our latest webinar to…
Deploy Lightning Web Component Files | Salesforce Lightning Tutorial
Learning Objectives After watching this video, you’ll be able to: Configure Lightning web component files for display in an org. Deploy your files to an…
Salesforce Tower San Francisco Virtual Community Tour
Wherever you are around the world, join us for a virtual tour of Salesforce Tower San Francisco, our global headquarters. Together, we’ll take a walk…