You need to sign in to do that
Don't have an account?
mgodsey
Assigning a territory to a test user in unit test
I'm writing a unit test where I need to assign a territory to a test user. However, DML is not allowed on the UserTerritory object. Is my only option to query for an actual user in the database?
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_userterritory.htm