Comments (4)
This ticket is erroneously filed in the fflib-apex-mocks
repo -- the unit test failure you're seeing is from fflib_SObjectUnitOfWorkTest which is in fflib-apex-common
However, before we go file the ticket over there -- do you have Platform Encryption (Shield) enabled on Opportunity in your org?
The query to retrieve Opportunities for that assertion use a SOQL query that depends on a LIKE clause:
[select Id, Name, (Select Id from OpportunityLineItems) from Opportunity where Name like :filter order by Name];
If that's the case, then it's probably a flavor of the same issue reported in apex-enterprise-patterns/fflib-apex-common#194
from fflib-apex-mocks.
true @daveespo , I created the issue in the wrong repo...sorry for that. Nup, If I am right, Platform Encryption Shield is not activated in the org...
from fflib-apex-mocks.
@lopezfra -- I just setup a clean scratch org and deployed the fflib-apex-mocks
and fflib-apex-common
code from the current master branches. All of the unit tests passed.
So, whatever the issue is, I suspect that it is environmental.
I would recommend that you open a new ticket on the fflib-apex-common project issues and we can figure this out from there.
from fflib-apex-mocks.
fully agree @ImJohnMDaniel ,closing this one to avoid any misunderstanding and I will open a new one in the right repo. Thanks!
from fflib-apex-mocks.
Related Issues (20)
- Explore the feasibility to support @NamespaceAccessible HOT 1
- How to use Apex Mock Framework for Custom Setting Records? HOT 3
- Heroku error when trying to deploy the repository
- No jar file? HOT 1
- Install help needed HOT 4
- fflib_MyList has 0 coverage when I run MockTest. Is that normal? HOT 1
- Mark all classes as @IsTest?
- makeRelationship does not work with Junction Objects HOT 1
- Add a method to allow us to create any SObjects with any NON WRITABLE Field HOT 2
- How to verify a Method was called N times? HOT 3
- Why do we must pass an Interface to set a service mock? HOT 2
- There is no way to mock void methods HOT 2
- renderStoredEmailTemplate returns with an error System.EmailTemplateRenderException: INVALID_CROSS_REFERENCE_KEY: invalid cross reference id when passing Ids generated from fflib_IDGenerator HOT 1
- README.md out of date? HOT 1
- Deploy to salesforce is not working HOT 12
- Can't deploy to production HOT 2
- Unable to deploy to developer org with Unhandled Exception HOT 1
- Multiple domain mocks HOT 4
- IDGenerator : Generating Salesforce Object ID under the new structure HOT 3
- Code Coverage Issue with fflib_InvocationOnMock Class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fflib-apex-mocks.