[wp-trac] [WordPress Trac] #56797: Add unit tests for block registration with RTL stylesheets
WordPress Trac
noreply at wordpress.org
Wed Mar 1 07:19:03 UTC 2023
#56797: Add unit tests for block registration with RTL stylesheets
---------------------------------------------------+-----------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-unit-tests dev-feedback has-patch | Focuses: css, rtl
---------------------------------------------------+-----------------------
Comment (by costdev):
@SergeyBiryukov I've submitted [https://github.com/WordPress/wordpress-
develop/pull/4150 PR 4150] which refreshes
[https://core.trac.wordpress.org/attachment/ticket/56797/56797.patch
56797.patch] to improve the docblock, to reset the text direction before
the assertions, and to add `$message` parameters to the assertions.
I ran a coverage report, and can confirm that the test covers
[https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
includes/blocks.php#L260-L270 the related lines] - [https://user-
images.githubusercontent.com/79332690/222069922-0da6416c-36bf-
4a03-a898-06bf4c09d3b0.png Screenshot].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56797#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list