Changeset 56936 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 10/15/2023 08:07:11 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r56548 r56936 122 122 ); 123 123 124 wp_set_current_user( 0 ); 125 124 126 $comment = get_comment( $comment_id ); 125 127 $expected_content = is_multisite() … … 128 130 129 131 $this->assertSame( $expected_content, $comment->comment_content ); 130 131 wp_set_current_user( 0 );132 132 } 133 133 … … 166 166 ); 167 167 168 wp_set_current_user( 0 ); 169 168 170 $comment = get_comment( $comment_id ); 169 171 $this->assertSame( '<a href="http://example.localhost/something.html" rel="nofollow ugc">click</a>', $comment->comment_content, 'Comment: ' . $comment->comment_content ); 170 wp_set_current_user( 0 );171 172 } 172 173
Note: See TracChangeset
for help on using the changeset viewer.