Skip to content

strike_tst_lookupController.test_getRecordLabel fails on non-English org #224

@camisotro

Description

@camisotro

Switch an org to a non-English language and run unit tests. strike_tst_lookupController.test_getRecordLabel fails because it is expecting "Account" but actually it returns the translated label.

Best practice would be to replace:
System.assertEquals('Account', objectLabel);
With:
System.assertEquals(Account.SObjectType.getDescribe().getLabel(), objectLabel);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions