Make WordPress Core


Ignore:
Timestamp:
06/24/2022 02:41:11 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Give the tests for adding empty post meta values more consistent names.

One of these was previously renamed to mention update_metadata_by_mid().

While update_metadata_by_mid() is indeed called in wp_ajax_add_meta() to update an existing meta value, the functionality change that the test intended to verify was in the latter function.

Follow-up to [44153], [53561].

See #55652.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesPost.php

    r53559 r53572  
    828828    /**
    829829     * @ticket 43559
    830      */
    831     public function test_post_add_meta_empty_is_allowed() {
     830     *
     831     * @covers ::add_meta
     832     */
     833    public function test_add_meta_allows_empty_values() {
    832834        $p = self::factory()->post->create();
    833835
Note: See TracChangeset for help on using the changeset viewer.