Make WordPress Core

Changeset 53732


Ignore:
Timestamp:
07/20/2022 02:47:39 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct the test for passing all expected parameters to the preprocess_comment filter.

Previously, assertSame() was replaced with assertSameSets(), which does not preserve the array keys. assertSameSetsWithIndex() should have been used instead.

Follow-up to [36038], [48937], [53729], [53730].

See #55647, #56244.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment-submission.php

    r53729 r53732  
    812812
    813813        $this->assertNotWPError( $comment );
    814         $this->assertSameSets(
     814        $this->assertSameSetsWithIndex(
    815815            array(
    816816                'comment_post_ID'      => self::$post->ID,
Note: See TracChangeset for help on using the changeset viewer.