Make WordPress Core

Changeset 58052

Timestamp:
04/28/2024 06:55:25 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use assertSame() in wp_handle_comment_submission() tests.

This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using assertSame() should generally be preferred to assertEquals() where appropriate, to make the tests more reliable.

Follow-up to [38778], [46829].

Props costdev.
See #60706.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.