Changeset 48937 for trunk/tests/phpunit/tests/comment/slashes.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/slashes.php
r47122 r48937 44 44 $comment = get_comment( $id ); 45 45 46 $this->assert Equals( wp_unslash( $this->slash_1 ), $comment->comment_author );47 $this->assert Equals( wp_unslash( $this->slash_7 ), $comment->comment_content );46 $this->assertSame( wp_unslash( $this->slash_1 ), $comment->comment_author ); 47 $this->assertSame( wp_unslash( $this->slash_7 ), $comment->comment_content ); 48 48 49 49 $data = array( … … 59 59 $comment = get_comment( $id ); 60 60 61 $this->assert Equals( wp_unslash( $this->slash_2 ), $comment->comment_author );62 $this->assert Equals( wp_unslash( $this->slash_4 ), $comment->comment_content );61 $this->assertSame( wp_unslash( $this->slash_2 ), $comment->comment_author ); 62 $this->assertSame( wp_unslash( $this->slash_4 ), $comment->comment_content ); 63 63 } 64 64 … … 89 89 $comment = get_comment( $comment_id ); 90 90 91 $this->assert Equals( $this->slash_1, $comment->comment_author );92 $this->assert Equals( $this->slash_7, $comment->comment_content );91 $this->assertSame( $this->slash_1, $comment->comment_author ); 92 $this->assertSame( $this->slash_7, $comment->comment_content ); 93 93 94 94 $_POST = array(); … … 105 105 $comment = get_comment( $comment_id ); 106 106 107 $this->assert Equals( $this->slash_2, $comment->comment_author );108 $this->assert Equals( $this->slash_4, $comment->comment_content );107 $this->assertSame( $this->slash_2, $comment->comment_author ); 108 $this->assertSame( $this->slash_4, $comment->comment_content ); 109 109 } 110 110 … … 124 124 $comment = get_comment( $comment_id ); 125 125 126 $this->assert Equals( wp_unslash( $this->slash_1 ), $comment->comment_author );127 $this->assert Equals( wp_unslash( $this->slash_7 ), $comment->comment_content );126 $this->assertSame( wp_unslash( $this->slash_1 ), $comment->comment_author ); 127 $this->assertSame( wp_unslash( $this->slash_7 ), $comment->comment_content ); 128 128 129 129 $comment_id = wp_insert_comment( … … 136 136 $comment = get_comment( $comment_id ); 137 137 138 $this->assert Equals( wp_unslash( $this->slash_2 ), $comment->comment_author );139 $this->assert Equals( wp_unslash( $this->slash_4 ), $comment->comment_content );138 $this->assertSame( wp_unslash( $this->slash_2 ), $comment->comment_author ); 139 $this->assertSame( wp_unslash( $this->slash_4 ), $comment->comment_content ); 140 140 } 141 141 … … 160 160 $comment = get_comment( $comment_id ); 161 161 162 $this->assert Equals( wp_unslash( $this->slash_1 ), $comment->comment_author );163 $this->assert Equals( wp_unslash( $this->slash_7 ), $comment->comment_content );162 $this->assertSame( wp_unslash( $this->slash_1 ), $comment->comment_author ); 163 $this->assertSame( wp_unslash( $this->slash_7 ), $comment->comment_content ); 164 164 165 165 wp_update_comment( … … 172 172 $comment = get_comment( $comment_id ); 173 173 174 $this->assert Equals( wp_unslash( $this->slash_2 ), $comment->comment_author );175 $this->assert Equals( wp_unslash( $this->slash_4 ), $comment->comment_content );174 $this->assertSame( wp_unslash( $this->slash_2 ), $comment->comment_author ); 175 $this->assertSame( wp_unslash( $this->slash_4 ), $comment->comment_content ); 176 176 } 177 177
Note: See TracChangeset
for help on using the changeset viewer.