Skip to content

Conversation

@nwcm
Copy link

@nwcm nwcm commented Jan 27, 2026

Description

Tests fail in orgs with platform encryption. See #251

Also

Type of Change

This is just a quick fix, we can look at using another account field over Id for better test functionality

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Test improvements
  • CI/CD improvements

Changes Made

  • Remove unsupported use on Account.Name for ORDER, LIKE, or SORT due to platform encryption
  • Fixes tests in force-app/main/default/classes/cached-soql/SOQLCache_Test.cls which may fail based on org specific triggers or other activity. Put test into new limit context with Test.startTest() and Test.stopTest()

Related Issues

Fixes #
Closes #251

Testing

  • All existing tests pass (npm test)
  • Added new tests for new functionality
  • Tested in scratch org
  • Linting passes (npm run lint)
  • Code formatting is correct (npm run prettier:verify)

Screenshots

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

@vercel
Copy link

vercel bot commented Jan 27, 2026

@nwcm is attempting to deploy a commit to the Beyond The Cloud Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apex test fail for orgs with Shield Platform Encryption enabled

1 participant