Changeset 48937 for trunk/tests/phpunit/tests/post/slashes.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/slashes.php
r47122 r48937 41 41 $post = get_post( $post_id ); 42 42 43 $this->assert Equals( $this->slash_1, $post->post_title );44 $this->assert Equals( $this->slash_5, $post->post_content );45 $this->assert Equals( $this->slash_7, $post->post_excerpt );43 $this->assertSame( $this->slash_1, $post->post_title ); 44 $this->assertSame( $this->slash_5, $post->post_content ); 45 $this->assertSame( $this->slash_7, $post->post_excerpt ); 46 46 47 47 $_POST = array(); … … 56 56 $post = get_post( $post_id ); 57 57 58 $this->assert Equals( $this->slash_2, $post->post_title );59 $this->assert Equals( $this->slash_4, $post->post_content );60 $this->assert Equals( $this->slash_6, $post->post_excerpt );58 $this->assertSame( $this->slash_2, $post->post_title ); 59 $this->assertSame( $this->slash_4, $post->post_content ); 60 $this->assertSame( $this->slash_6, $post->post_excerpt ); 61 61 } 62 62 … … 77 77 $post = get_post( $id ); 78 78 79 $this->assert Equals( wp_unslash( $this->slash_1 ), $post->post_title );80 $this->assert Equals( wp_unslash( $this->slash_3 ), $post->post_content );81 $this->assert Equals( wp_unslash( $this->slash_5 ), $post->post_excerpt );79 $this->assertSame( wp_unslash( $this->slash_1 ), $post->post_title ); 80 $this->assertSame( wp_unslash( $this->slash_3 ), $post->post_content ); 81 $this->assertSame( wp_unslash( $this->slash_5 ), $post->post_excerpt ); 82 82 83 83 $id = wp_insert_post( … … 92 92 $post = get_post( $id ); 93 93 94 $this->assert Equals( wp_unslash( $this->slash_2 ), $post->post_title );95 $this->assert Equals( wp_unslash( $this->slash_4 ), $post->post_content );96 $this->assert Equals( wp_unslash( $this->slash_6 ), $post->post_excerpt );94 $this->assertSame( wp_unslash( $this->slash_2 ), $post->post_title ); 95 $this->assertSame( wp_unslash( $this->slash_4 ), $post->post_content ); 96 $this->assertSame( wp_unslash( $this->slash_6 ), $post->post_excerpt ); 97 97 } 98 98 … … 113 113 $post = get_post( $id ); 114 114 115 $this->assert Equals( wp_unslash( $this->slash_1 ), $post->post_title );116 $this->assert Equals( wp_unslash( $this->slash_3 ), $post->post_content );117 $this->assert Equals( wp_unslash( $this->slash_5 ), $post->post_excerpt );115 $this->assertSame( wp_unslash( $this->slash_1 ), $post->post_title ); 116 $this->assertSame( wp_unslash( $this->slash_3 ), $post->post_content ); 117 $this->assertSame( wp_unslash( $this->slash_5 ), $post->post_excerpt ); 118 118 119 119 wp_update_post( … … 127 127 $post = get_post( $id ); 128 128 129 $this->assert Equals( wp_unslash( $this->slash_2 ), $post->post_title );130 $this->assert Equals( wp_unslash( $this->slash_4 ), $post->post_content );131 $this->assert Equals( wp_unslash( $this->slash_6 ), $post->post_excerpt );129 $this->assertSame( wp_unslash( $this->slash_2 ), $post->post_title ); 130 $this->assertSame( wp_unslash( $this->slash_4 ), $post->post_content ); 131 $this->assertSame( wp_unslash( $this->slash_6 ), $post->post_excerpt ); 132 132 } 133 133 … … 148 148 $post = get_post( $id ); 149 149 150 $this->assert Equals( $this->slash_1, $post->post_title );151 $this->assert Equals( $this->slash_3, $post->post_content );152 $this->assert Equals( $this->slash_5, $post->post_excerpt );150 $this->assertSame( $this->slash_1, $post->post_title ); 151 $this->assertSame( $this->slash_3, $post->post_content ); 152 $this->assertSame( $this->slash_5, $post->post_excerpt ); 153 153 154 154 $untrashed = wp_untrash_post( $id ); … … 157 157 $post = get_post( $id ); 158 158 159 $this->assert Equals( $this->slash_1, $post->post_title );160 $this->assert Equals( $this->slash_3, $post->post_content );161 $this->assert Equals( $this->slash_5, $post->post_excerpt );159 $this->assertSame( $this->slash_1, $post->post_title ); 160 $this->assertSame( $this->slash_3, $post->post_content ); 161 $this->assertSame( $this->slash_5, $post->post_excerpt ); 162 162 } 163 163 }
Note: See TracChangeset
for help on using the changeset viewer.