Activity Forums Salesforce® Discussions Testing assignment rule when inserting test cases

  • Testing assignment rule when inserting test cases

    Posted by Ravi on April 30, 2016 at 4:04 pm

    I am writing a test class to test behavior of my code. Therefore I would like assignment rules to run when inserting test cases. Please help.

    Ajit replied 8 years ago 3 Members · 2 Replies
  • 2 Replies
  • Himanshu

    Member
    April 30, 2016 at 4:06 pm

    Hi Ravi,

    try adding the seeAllData annotation to your test method

    @isTest(seeAllData=true)
    static void test_mockIfAtAllPossible(){
    }

    Hope this helps you.

  • Ajit

    Member
    April 30, 2016 at 4:06 pm

    Try Using (seeAllData=true) it will help you.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos