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

Success Stories – How DemandBlue Helped Its Clients Improve Revenue Recognition with Salesforce Revenue Cloud Implementation

Blog in

Businesses that deal with subscription-based contracts, usage-based billing or other complex contracts face several difficulties in managing their billing cycle. Though Salesforce CPQ implementation does the heavy-lifting…

Popular Salesforce Videos