I need to fetch a List of all Queues in the org which allow Leads. To do this I created a function which does its job well. Now in Unit Testing, the problem I am facing is that the unit Tests see all the org data. That means all Queues that are already created in the org are also visible to my Uni test. I have checked that the seeallData flag is set to false, yet it shows all of them.

Please let me know if you have any information or if I may be missing something.


That is standard behavior. Certain information is still available even if you are isolating your tests from the org's data.


  • But Queue isn't listed there. Documentation bug? – Keith C May 29 '14 at 7:49
  • The documentation could be better but it actually says "such as:" so that would indicate they are not listing every single object but only a few examples. – PepeFloyd May 29 '14 at 7:51
  • Ah should have read it rather than searched it... thanks. – Keith C May 29 '14 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.