Commit 36a7c6c
committed
Tests: Update
* Use the same `@group` annotation as the other tests.
* Use `assertSame()` to verify the type of the result.
* Use `data_` prefix for the data provider.
* Use named data set in the data provider. This makes the output when using the `--testdox` option more descriptive and is helpful when trying to debug which data set from a data provider failed the test.
* Other minor corrections.
Reference: [https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#repetitive-tests Core Handbook: Writing PHP Tests: Repetitive Tests].
Follow-up to [57145].
See #59953, #59647.
git-svn-id: https://develop.svn.wordpress.org/trunk@57146 602fd350-edb4-49c9-b593-d223f7449a82_wp_timezone_choice_usort_callback() tests for consistency.1 parent 4cee935 commit 36a7c6c
1 file changed
Lines changed: 18 additions & 24 deletions
Lines changed: 18 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | | - | |
| 23 | + | |
26 | 24 | | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
105 | | - | |
| 102 | + | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
180 | | - | |
181 | 177 | | |
182 | 178 | | |
183 | | - | |
| 179 | + | |
184 | 180 | | |
185 | 181 | | |
186 | 182 | | |
| |||
255 | 251 | | |
256 | 252 | | |
257 | 253 | | |
258 | | - | |
259 | 254 | | |
260 | 255 | | |
261 | | - | |
| 256 | + | |
262 | 257 | | |
263 | 258 | | |
264 | 259 | | |
| |||
333 | 328 | | |
334 | 329 | | |
335 | 330 | | |
336 | | - | |
337 | 331 | | |
338 | | - | |
| 332 | + | |
| 333 | + | |
339 | 334 | | |
340 | 335 | | |
341 | 336 | | |
| |||
410 | 405 | | |
411 | 406 | | |
412 | 407 | | |
413 | | - | |
414 | 408 | | |
415 | | - | |
| 409 | + | |
| 410 | + | |
416 | 411 | | |
417 | 412 | | |
418 | 413 | | |
| |||
487 | 482 | | |
488 | 483 | | |
489 | 484 | | |
490 | | - | |
491 | 485 | | |
492 | | - | |
| 486 | + | |
| 487 | + | |
493 | 488 | | |
494 | 489 | | |
495 | 490 | | |
| |||
564 | 559 | | |
565 | 560 | | |
566 | 561 | | |
567 | | - | |
568 | 562 | | |
569 | | - | |
| 563 | + | |
| 564 | + | |
570 | 565 | | |
571 | 566 | | |
572 | 567 | | |
| |||
641 | 636 | | |
642 | 637 | | |
643 | 638 | | |
644 | | - | |
645 | 639 | | |
646 | 640 | | |
647 | 641 | | |
| |||
0 commit comments