Skip to content

Update TestHelper.cls#672

Open
showjean wants to merge 1 commit intotrailheadapps:mainfrom
showjean:showjean-patch-1
Open

Update TestHelper.cls#672
showjean wants to merge 1 commit intotrailheadapps:mainfrom
showjean:showjean-patch-1

Conversation

@showjean
Copy link

What does this PR do?

Patch TestHelper.getUnknownObjectType()

What issues does this PR fix or reference?

The PR fulfills these requirements:

[ ] Tests for the proposed changes have been added/updated.
[ ] Code linting and formatting was performed.

Functionality Before

System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Date.today())); // => 'Datetime' System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Datetime.now())); // => 'Datetime'

Functionality After

System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Date.today())); // => 'Date' System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Datetime.now())); // => 'Datetime'

// before
System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Date.today())); // => 'Datetime'
System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Datetime.now())); // => 'Datetime'
// after
System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Date.today())); // => 'Date'
System.debug(LoggingLevel.INFO, TestHelper.getUnknownObjectType(Datetime.now())); // => 'Datetime'
@showjean showjean requested a review from a team as a code owner November 26, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant