我有两个完成相同事情的Apex方法。我对框架很陌生,只是想确保我正确地解释它。 //Method 1:
for (Account a : trigger.new) {
for (Contact c : [SELECT Id, OtherPhone FROM Contact WHERE AccountId= :a.Id]) {
c.OtherPhone= a.Phone; up
我发现了一个类似的答案在这里: How to unit test works in salesforce? 这里:https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_error_handling.htm 但是,这些并没有真的好像我的回答特定问题。 我“剔除”了一些测试类。我们应该有从