Opened 10 months ago
Closed 9 months ago
#57718 closed defect (bug) (fixed)
Account for Windows line endings in `Tests_Formatting_wpAutop::test_skip_block_math_elements()`
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.2 | Priority: | normal |
Severity: | normal | Version: | 6.2 |
Component: | Build/Test Tools | Keywords: | good-first-bug has-patch has-unit-tests commit |
Focuses: | Cc: |
Description
[55272] added support for <math>
block elements in wpautop()
.
On Windows systems, one of the added tests for the changes in [55272] fails:
1) Tests_Formatting_wpAutop::test_skip_block_math_elements Failed asserting that two strings are identical. ... #Warning: Strings contain different line endings!
Perhaps the fix here is assertSameIgnoreEOL
in place of assertSame
?
CC @SergeyBiryukov.
Attachments (1)
Change History (9)
#1
@
10 months ago
- Summary changed from Account Windows line endings in `Tests_Formatting_wpAutop::test_skip_block_math_elements()` to Account for Windows line endings in `Tests_Formatting_wpAutop::test_skip_block_math_elements()`
#2
in reply to:
↑ description
@
10 months ago
This ticket was mentioned in PR #4089 on WordPress/wordpress-develop by IgnatGeorgiev.
10 months ago
#3
- Keywords has-patch has-unit-tests added; needs-patch removed
Tests: Changing assertion type for test_skip_block_math_elements() method from Tests_Formatting_wpAutop class.
The assertion type has been changed due to an issue with Windows installations and differences in EOL characters.
Trac ticket: https://core.trac.wordpress.org/ticket/57718
Trac ticket:
Replying to davidbaumwald:
Yes, that should work and would be consistent with other similar assertions in the same test class.