mitchspano/apex-trigger-actions-framework

TestUtility.getFakeId throws Invalid id: 0010000000000010

bloerinczCBS-CX opened this issue · 0 comments

Expected Behavior

TestUtility.getFakeId should work consistently.

Actual Behavior

The error "Invalid id: 0010000000000010" is thrown. See example below.

Steps to Reproduce the Problem

Create a test class like this and run the test method:

@isTest
private class LRZTest {
    @isTest
    static void testing() {
        for (Integer i=0; i<5; i++) {
            Account acc = new Account();
            acc.Id = TestUtility.getFakeId(Account.SObjectType);
        }
    }
}