Make WordPress Core

Opened 3 years ago

Last modified 20 months ago

#60301 new enhancement

PHPunit test for print_emoji_detection_script

Reported by: pbearne Owned by:
Priority: normal Milestone: Awaiting Review
Component: Formatting Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses: tests

Description


Change History (5)

This ticket was mentioned in ​PR #5910 on ​WordPress/wordpress-develop by ​@pbearne.


3 years ago
#1

  • Keywords has-patch has-unit-tests added

A new unit test for the wp_staticize_emoji_for_email function has been added. This test provides verification for a variety of scenarios; from simple messages, messages with emojis, and adjustments based on the email's content type.

This ticket was mentioned in ​PR #5912 on ​WordPress/wordpress-develop by ​@pbearne.


3 years ago
#2

A new unit test file is created to ensure that the print_emoji_detection_script function works correctly. The tests check whether the final output contains the expected string and ensure no output when printing the emoji detection script again.

​@swissspidy commented on ​PR #5910:


3 years ago
#3

@pbearne this is just the same test as ​https://github.com/WordPress/wordpress-develop/pull/5912 🤔

#4 @desrosj
2 years ago

  • Component Build/Test Tools → Formatting
  • Type defect (bug) → enhancement

Since this is about adding tests and not a general build or test tooling change, I'm reassigning it to the relevant component.

#5 @desrosj
20 months ago

  • Focuses tests added
Note: See TracTickets for help on using tickets.