Make WordPress Core

Changeset 60487


Ignore:
Timestamp:
07/18/2025 09:54:35 PM (12 months ago)
Author:
dmsnell
Message:

HTML API: Use assertEqualHTML() in post filtering tests.

Developed in https://github.com/WordPress/wordpress-develop/pull/9258
Discussed in https://core.trac.wordpress.org/ticket/63694

Props dmsnell, jonsurrell.
See #63694.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/filtering.php

    r56548 r60487  
    3636                $post = get_post( $id );
    3737
    38                 $this->assertSame( $expected, $post->post_content );
     38                $this->assertEqualHTML( $expected, $post->post_content );
    3939        }
    4040
     
    5353                $post = get_post( $id );
    5454
    55                 $this->assertSame( $expected, $post->post_content );
     55                $this->assertEqualHTML( $expected, $post->post_content );
    5656        }
    5757
     
    7070                $post = get_post( $id );
    7171
    72                 $this->assertSame( $expected, $post->post_content );
     72                $this->assertEqualHTML( $expected, $post->post_content );
    7373        }
    7474
     
    9090                $post = get_post( $id );
    9191
    92                 $this->assertSame( $expected, $post->post_content );
     92                $this->assertEqualHTML( $expected, $post->post_content );
    9393        }
    9494
     
    110110                $post = get_post( $id );
    111111
    112                 $this->assertSame( $content, $post->post_content );
     112                $this->assertEqualHTML( $content, $post->post_content );
    113113        }
    114114}
Note: See TracChangeset for help on using the changeset viewer.