You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is purely from reviewing the Apex test code and noticing the inconsistency. Some tests call it, some do not. It is called often enough that is appears to be used to ensure a consistent state at the start of each test.
A possible fix to ensure this consistency would be to place this call in a [TestInitialize] method on the base test class. This would by default ensure that all tests follow the same logic, and would simplify test authoring (don't need to remember to copy this every time).
Verbose Logs
No response
The text was updated successfully, but these errors were encountered:
NuGet Product Used
Other/NA
Product Version
n/a
Worked before?
No response
Impact
None
Repro Steps & Context
This is purely from reviewing the Apex test code and noticing the inconsistency. Some tests call it, some do not. It is called often enough that is appears to be used to ensure a consistent state at the start of each test.
A possible fix to ensure this consistency would be to place this call in a [TestInitialize] method on the base test class. This would by default ensure that all tests follow the same logic, and would simplify test authoring (don't need to remember to copy this every time).
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: