1
vote
Accepted
Can I mock out lookup relationship using FFLIB ApexMocks
In response to your comment about not being able to use SObjectFabricator, you can deserialize a string into an object with these fields/relationships set.
This is pretty crude, but it works. Use it ...
- 2,823
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unit-test × 4652apex × 2908
code-coverage × 808
trigger × 551
failing-tests × 306
class × 205
batch × 196
visualforce × 186
callout × 124
test-setup × 119
soql × 117
deployment × 113
controller × 108
httpcalloutmock × 105
scheduled-apex × 87
community × 56
exception × 55
lightning-web-components × 51
rest-api × 49
webservices × 48
controller-extension × 47
error × 45
future × 43
managed-package × 40
salesforcedx × 39