My test class currently includes the code from here only, with the exception described below: https://developer.salesforce.com/page/Apex_Testing_with_RunAs
I've added this line of code just above the class: @IsTest(SeeAllData=true)
When I run this test I receive the below error:
"System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATES_DETECTED, You're creating a duplicate contact record. We recommend selecting the "Contacts" tab, performing a search for the existing record instead."
(SeeAllData=true) part makes the tests all pass. The problem is that I need
SeeAllData in there because I also need to add a bit of code to this class that will call a controller method which uses portions of the ConnectAPI that require
So what's going on here? Is it not possible to test code connecting calls to the
ConnectAPI which require