Rationale

As a best practice, tests should always be isolated and create their own data. Accessing the org data for unit tests, using the annotation @IsTest(seeAllData=true), should be avoided.

Scope

  • Apex test classes
  • Apex test methods

See also

Did this answer your question?