Activity Forums Salesforce® Discussions How to use containsIgnoreCase in mock class in Salesforce?

  • Anuj

    Member
    September 16, 2020 at 1:36 pm

    The containsIgnoreCase() function takes string or searchString as arguments. It returns True if the string contains the searchString. Otherwise, it returns False.
    For e.g
    String s = 'hello';
    Boolean b = s.containsIgnoreCase('HE');
    System.assertEquals(true,b);

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos