Closed wimvelzeboer closed 4 years ago
@daveespo I have added a unit test that covers this new method. I didn't want to use DML statements to make it Org in depended, but when I was using mocking I found a bug in fflib_MatcherDefinitions.SObjectsWith.matches object. It was only checking the first record in a list and not all of them. I raised a PR in fflib-apex-mocks for that to fix it. Once that is merged the unit-test will be successful
@daveespo I have removed the file.. :-)
@afawcett can this get merged?
@JAertgeerts -- FYI on the comment above
@ImJohnMDaniel, that is because the PR on fflib-apex-mocks first need to get merged. (See my comment of 4 months ago)
checking....
yup - I see it now. Let me work to merge that and then circle back to this PR. Shouldn't be long.
@wimvelzeboer -- even after merging the ApexMocks PR 88, I am still getting the compilation failure on fflib_SObjectMocks.SObjectUnitOfWork
from this PR. Can you take a look please?
@wimvelzeboer -- even after merging the ApexMocks PR 88, I am still getting the compilation failure on
fflib_SObjectMocks.SObjectUnitOfWork
from this PR. Can you take a look please?
@ImJohnMDaniel Fixed!
Previously you could only register a single record with dirty fields, with this change you can register a list of SObjects with dirty fields.