I'm creating some setup data for a test class. I'm wondering if there is annotation to turn off the Lookup filters during the test? I have removed the filters currently, but will need them after the tests pass.
This creates a custom Account where the fields have filters on normally:
//Lookup Filters will cause the insert to fail.
Relationship_Manager_Accounts__c RMAccount = new Relationship_Manager_Accounts__c();
RMAccount.RM_Rank__c =1;
RMAccount.Relationship_Manager_Contact__c = contact.get(2).id;
RMAccount.Account__c = account.get(2).id;
insert RMAccount;
return RMAccount;