Changeset 48937 for trunk/tests/phpunit/tests/attachment/slashes.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/attachment/slashes.php
r47122 r48937 38 38 $post = get_post( $id ); 39 39 40 $this->assert Equals( wp_unslash( $this->slash_1 ), $post->post_title );41 $this->assert Equals( wp_unslash( $this->slash_3 ), $post->post_content_filtered );42 $this->assert Equals( wp_unslash( $this->slash_5 ), $post->post_excerpt );40 $this->assertSame( wp_unslash( $this->slash_1 ), $post->post_title ); 41 $this->assertSame( wp_unslash( $this->slash_3 ), $post->post_content_filtered ); 42 $this->assertSame( wp_unslash( $this->slash_5 ), $post->post_excerpt ); 43 43 44 44 $id = wp_insert_attachment( … … 53 53 $post = get_post( $id ); 54 54 55 $this->assert Equals( wp_unslash( $this->slash_2 ), $post->post_title );56 $this->assert Equals( wp_unslash( $this->slash_4 ), $post->post_content_filtered );57 $this->assert Equals( wp_unslash( $this->slash_6 ), $post->post_excerpt );55 $this->assertSame( wp_unslash( $this->slash_2 ), $post->post_title ); 56 $this->assertSame( wp_unslash( $this->slash_4 ), $post->post_content_filtered ); 57 $this->assertSame( wp_unslash( $this->slash_6 ), $post->post_excerpt ); 58 58 } 59 59
Note: See TracChangeset
for help on using the changeset viewer.