[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9

WordPress Trac noreply at wordpress.org
Mon Jul 26 17:40:08 UTC 2021


#53363: Test tool and unit test improvements for 5.9
--------------------------------------+---------------------
 Reporter:  desrosj                   |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  5.9
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"51490" 51490]:
 {{{
 #!CommitTicketReference repository="" revision="51490"
 Tests: Move and fix incorrectly placed tests for block supported styles.

 The `Block_Supported_Styles_Test` class is not a `TestCase` to be
 extended, but an actual concrete test class. In order to run as expected,
 it should be placed under `phpunit/tests/blocks/` along with the other
 block tests.

 Additionally:
 * Add missing visibility keywords to test methods.
 * Update the expected results to the currently used format for the tests
 to pass.
 * Remove two outdated tests. The functionality being tested there is no
 longer available in this manner, so these tests are redundant.

 Follow-up to [49226], [49310].

 Props jrf, aristath, youknowriad.
 See #53363.
 }}}

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


More information about the wp-trac mailing list