Commit 6045c24
committed
Block Processor: Remove use of NumberFormatter from test suite.
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#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-d223f7449a821 parent 38c3584 commit 6045c24
File tree
1 file changed
+8
-5
lines changed- tests/phpunit/tests/block-processor
1 file changed
+8
-5
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | | - | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
0 commit comments