Make WordPress Core

Changeset 54067


Ignore:
Timestamp:
09/05/2022 02:04:12 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.