function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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?