LogManagementDataSelector_Tests.it_returns_profiles_for_specified_profile_ids unit test method is failing when some of user profile names begin with lower-case letter #393
Labels
Layer: Log Management
Items related to the custom objects & Logger Console app
tests
Relates to Apex or LWC jest tests
Type: Bug
Something isn't working
Milestone
Package Edition of Nebula Logger
Unlocked Package
Package Version of Nebula Logger
v4.8.3
New Bug Summary
LogManagementDataSelector_Tests.it_returns_profiles_for_specified_profile_ids
unit test method is failing when some of user profile names begin with lower-case letter.E.g.: The test will fail if there are three profiles named 'A', 'b', and 'C'.
This is because
SOQL ORDER BY
sorting is case-insensitive, andList.sort()
method - is case-sensitive.A solution is to sort both the expected and the returned lists in the same way.
The text was updated successfully, but these errors were encountered: