Opened 7 weeks ago
Last modified 15 hours ago
#64329 new defect (bug)
Block Processor tests fail without intl extension
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 6.9.1 | Priority: | normal |
| Severity: | normal | Version: | 6.9 |
| Component: | Editor | Keywords: | has-patch has-unit-tests dev-reviewed fixed-major |
| Focuses: | tests | Cc: |
Description
The new Block Processor test suite calls NumberFormatter without checking if it exists. It uses the class for generating test failure errors, but in environments without the intl extension it will crash.
Change History (7)
This ticket was mentioned in PR #10576 on WordPress/wordpress-develop by @dmsnell.
7 weeks ago
#1
- Keywords has-patch has-unit-tests added
@dmsnell commented on PR #10576:
7 weeks ago
#3
#5
@
7 weeks ago
- Keywords dev-reviewed added; dev-feedback removed
Approving this test fix for certain environments for backport.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
15 hours ago
Note: See
TracTickets for help on using
tickets.
Trac ticket: Core-64329
The Block Processor tests call
NumberFormatterfor generating its error messages, but in environments lacking theintlextension this led to crashes while running the tests.This patch reworks the tests so that they avoid calling
NumberFormatterso that the tests run on more diverse setups.