Skip to content

Conversation

@dmsnell
Copy link
Member

@dmsnell dmsnell commented Dec 1, 2025

Trac ticket: Core-64329

The Block Processor tests call NumberFormatter for generating its error messages, but in environments lacking the intl extension this led to crashes while running the tests.

This patch reworks the tests so that they avoid calling NumberFormatter so that the tests run on more diverse setups.

The Block Processor tests call `NumberFormatter` for generating its
error messages, but in environments lacking the `intl` extension this
led to crashes while running the tests.

This patch reworks the tests so that they avoid calling
`NumberFormatter` so that the tests run on more diverse setups.
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props dmsnell.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

pento pushed a commit that referenced this pull request Dec 1, 2025
The Block Processor tests call `NumberFormatter` for generating its
error messages, but in environments lacking the `intl` extension this
led to crashes while running the tests.

This patch reworks the tests so that they avoid calling
`NumberFormatter` so that the tests run on more diverse setups.

Developed in #10576
Discussed in https://core.trac.wordpress.org/ticket/64329

Follow-up to [60939].

Props desrosj, ellatrix, peterwilsoncc, westonruter.

See #64329.


git-svn-id: https://develop.svn.wordpress.org/trunk@61342 602fd350-edb4-49c9-b593-d223f7449a82
@dmsnell
Copy link
Member Author

dmsnell commented Dec 1, 2025

Merged in 6045c24
[61342]

@dmsnell dmsnell closed this Dec 1, 2025
@dmsnell dmsnell deleted the block-processor/tests-no-number-formatter branch December 1, 2025 23:45
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Dec 1, 2025
The Block Processor tests call `NumberFormatter` for generating its
error messages, but in environments lacking the `intl` extension this
led to crashes while running the tests.

This patch reworks the tests so that they avoid calling
`NumberFormatter` so that the tests run on more diverse setups.

Developed in WordPress/wordpress-develop#10576
Discussed in https://core.trac.wordpress.org/ticket/64329

Follow-up to [60939].

Props desrosj, ellatrix, peterwilsoncc, westonruter.

See #64329.

Built from https://develop.svn.wordpress.org/trunk@61342


git-svn-id: http://core.svn.wordpress.org/trunk@60654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
github-actions bot pushed a commit to platformsh/wordpress-performance that referenced this pull request Dec 1, 2025
The Block Processor tests call `NumberFormatter` for generating its
error messages, but in environments lacking the `intl` extension this
led to crashes while running the tests.

This patch reworks the tests so that they avoid calling
`NumberFormatter` so that the tests run on more diverse setups.

Developed in WordPress/wordpress-develop#10576
Discussed in https://core.trac.wordpress.org/ticket/64329

Follow-up to [60939].

Props desrosj, ellatrix, peterwilsoncc, westonruter.

See #64329.

Built from https://develop.svn.wordpress.org/trunk@61342


git-svn-id: https://core.svn.wordpress.org/trunk@60654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants