Changeset 51451 for trunk/tests/phpunit/tests/ajax/Autosave.php
- Timestamp:
- 07/17/2021 10:36:52 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/Autosave.php
r51450 r51451 80 80 // Check that the edit happened. 81 81 $post = get_post( self::$post_id ); 82 $this->assert NotFalse( strpos( $post->post_content, $md5 ));82 $this->assertStringContainsString( $md5, $post->post_content ); 83 83 } 84 84 … … 126 126 // Check that the original post was NOT edited. 127 127 $post = get_post( self::$post_id ); 128 $this->assert False( strpos( $post->post_content, $md5 ));128 $this->assertStringNotContainsString( $md5, $post->post_content ); 129 129 130 130 // Check if the autosave post was created. 131 131 $autosave = wp_get_post_autosave( self::$post_id, get_current_user_id() ); 132 132 $this->assertNotEmpty( $autosave ); 133 $this->assert NotFalse( strpos( $autosave->post_content, $md5 ));133 $this->assertStringContainsString( $md5, $autosave->post_content ); 134 134 } 135 135
Note: See TracChangeset
for help on using the changeset viewer.