Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify test code for parent object #637

Closed
cmcfarling opened this issue Feb 16, 2018 · 2 comments
Closed

Modify test code for parent object #637

cmcfarling opened this issue Feb 16, 2018 · 2 comments

Comments

@cmcfarling
Copy link

The Parent Object (Account) has validation that requires a value in a field. I've read through the Wiki but I'm not understanding how to modify the test code to accommodate this. It seems the Test Code field is only for modifying the Child Object. Am I missing something?

I just need
new Account()
to be
new Account(Account_Shortcode__c='ZZZ')

image

image

@afawcett
Copy link
Collaborator

You are not missing something, the Test Code field only applies to child object. I have marked this as an enhancement. Meanwhile if you have access to Developer Console in your Sandbox you can copy paste these triggers and add them with your changes. So long as you use the same names the tool will let you activate the rollup. You do not need to use Manage Child Trigger.

@afawcett
Copy link
Collaborator

afawcett commented Apr 6, 2020

Fixed in v2.12

@afawcett afawcett closed this as completed Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants