Skip to content

Commit f4da3d4

Browse files
committed
Fix missing variable referenced in test method
The registerDeleted test method referred to a variable 'record' that wasn't in the scoped. Was breaking deployment via git deploy. I've changed it to use the records variable which is in scope.
1 parent 893552b commit f4da3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fflib/src/classes/fflib_SObjectMocks.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public class fflib_SObjectMocks
221221

222222
public void registerDeleted(List<SObject> records)
223223
{
224-
mocks.mockVoidMethod(this, 'registerDeleted', new List<Object> {record});
224+
mocks.mockVoidMethod(this, 'registerDeleted', new List<Object> {records});
225225
}
226226

227227
public void commitWork()

0 commit comments

Comments
 (0)