Skip to content

Apex test MetadataTriggerHandlerTest.bypassWithTypeShouldSucceed is not namespace safe #198

@nwcm

Description

@nwcm

This test fails in a namespace org/package. I see other PRs related to namespace support; however I don't think they will address this specific issue.

  @IsTest
  private static void bypassWithTypeShouldSucceed() {
    MetadataTriggerHandler.bypass(TestBeforeInsert.class);

    System.Assert.isTrue(
      MetadataTriggerHandler.bypassedActions.contains(TEST_BEFORE_INSERT),
      BYPASSES_SHOULD_BE_CONFIGURED_PROPERLY
    );
  }
private static final String TEST_BEFORE_INSERT = 'MetadataTriggerHandlerTest.TestBeforeInsert';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions