Apex unit tests should not use @isTest(seeAllData=true)

Impact area

Manageability

Severity

Medium

Affected element

Apex Class

Rule ID


SF-0002

Impact

Using @isTest(seeAllData=true) opens up the existing database data for unexpected modification by tests.

Remediation

Remove this annotation in your unit tests.

Time to fix

60 min




Last modified on Jun 10, 2020