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

WordPress Trac noreply at wordpress.org
Mon Sep 5 14:04:26 UTC 2022


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

Comment (by SergeyBiryukov):

 In [changeset:"54067" 54067]:
 {{{
 #!CommitTicketReference repository="" revision="54067"
 Tests: Set the current user to Editor in
 `test_utf8mb3_post_saves_with_emoji()`.

 This avoids a "Sorry, you are not allowed to edit this post" error further
 in the test. The test is currently skipped on GitHub Actions, as only runs
 on older MySQL versions specifically with the `utf8` character set.

 The user was previously set for all tests in the file in the `set_up()`
 method, however that is no longer the case, as it was not required for the
 majority of the tests. It is, however, necessary for the `edit_post()`
 call in this particular test.

 Follow-up to [30346], [53785].

 See #55652.
 }}}

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


More information about the wp-trac mailing list