-
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
Aggregate Functions in Salesforce - The Developer Guide
In Spring ‘10, Salesforce released new Apex functionality for total functions in SOQL. These queries return an AggregateResult object. Utilize aggregate functions in a Group…
Salesforce for Real Estate: Transforming Property Businesses with CRM
The real estate industry has become more competitive than ever. Buyers expect quick responses, personalized property recommendations, and a seamless buying experience. At the same…
The Ultimate Guide to Choosing the Right Salesforce Development Company
Are you looking to implement Salesforce for your business but unsure how to customize it to fit your needs? Or perhaps you have already implemented…
Popular Salesforce Videos
Visualforce Training for Beginners : Visualforce Tags in Salesforce
This video helps you to learn following topics: Visualforce Tags Standard Controllers Associating a Standard Controller with a Visualforce Page What are action methods? Action…
How to Become Salesforce Developer | Salesforce For Beginners
In this how-to become Salesforce developer video, you will be learning what is Salesforce, the fundamentals of Salesforce, how to become a Salesforce developer, how…
What are Custom Page Layout in Salesforce?
Custom Page Layout is creating its own layout and modifying the same layout which we have created. Watch this video to learn all about Custom…