New answers tagged

1

This unit test has a number of problems that will prevent it from operating correctly and providing you with any valid information about the behavior of your code. You hard-code Salesforce Ids. Every unit test must create its own data - all of its own data. Your unit test code cannot see existing records in your org, so those Ids are invalid. Your unit test ...


Top 50 recent answers are included