[wp-trac] [WordPress Trac] #56266: Backport missing Gutenberg tests to Core

WordPress Trac noreply at wordpress.org
Tue Oct 4 14:20:32 UTC 2022


#56266: Backport missing Gutenberg tests to Core
---------------------------------------------+-----------------------------
 Reporter:  antonvlasenko                    |       Owner:  hellofromTonya
     Type:  task (blessed)                   |      Status:  closed
 Priority:  normal                           |   Milestone:  6.1
Component:  Editor                           |     Version:  trunk
 Severity:  minor                            |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54382" 54382]:
 {{{
 #!CommitTicketReference repository="" revision="54382"
 Editor: Add PHPUnit tests for 5.9.0 new functions.

 During the 5.9.0 cycle, tests were missed during the porting from
 Gutenberg to Core for the following functions:

 * `_disable_block_editor_for_navigation_post_type()`
 * `_disable_content_editor_for_navigation_post_type()`
 * `_enable_content_editor_for_navigation_post_type()`
 * `wp_filter_global_styles_post()`

 This commit adds new test classes for these functions.

 Reference:
 * [https://github.com/WordPress/gutenberg/blob/release/13.6/phpunit
 /global-styles-test.php Gutenberg v13.6] for `WP_Global_Styles_Test`
 * [https://github.com/WordPress/gutenberg/blob/release/13.6/phpunit
 /navigation-test.php Gutenberg v13.6] for `WP_Navigation_Test`

 Follow-up to [52298], [52145], [52052].

 Props antonvlasenko, costdev, ironprogrammer, robinwpdeveloper,
 hellofromTonya.
 Fixes #56266.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56266#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list