Skip to content

Commit dee3bac

Browse files
⛳ Add upsert to tests that use the UoW IDML
1 parent b2207d9 commit dee3bac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sfdx-source/apex-common/test/classes/fflib_ApplicationTest.cls

+4
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ private class fflib_ApplicationTest
442442
{
443443
public boolean isInsertCalled = false;
444444
public boolean isUpdateCalled = false;
445+
public boolean isUpsertCalled = false;
445446
public boolean isDeleteCalled = false;
446447
public boolean isPublishCalled = false;
447448
public Boolean isEmptyRecycleBinCalled = false;
@@ -452,6 +453,9 @@ private class fflib_ApplicationTest
452453
public void dmlUpdate(List<SObject> objList){
453454
this.isUpdateCalled = true;
454455
}
456+
public void dmlUpsert(List<SObject> objList, Schema.SObjectField externalId){
457+
this.isUpsertCalled = true;
458+
}
455459
public void dmlDelete(List<SObject> objList){
456460
this.isDeleteCalled = true;
457461
}

0 commit comments

Comments
 (0)