+ Start a Discussion
David Herrero 5David Herrero 5 

Test class for select id from ObjectTerritory2Association

Hi , I need to create  a test class for ObjectTerritory2Association.

I have ObjectTerritory2Association activated in my org. It is working properly but when inside a test class I insert an account , if I query on ObjectTerritory2Association it is empty.
How am I supposed to create a test class for this?