Changeset 51462 for trunk/tests/phpunit/tests/formatting/Emoji.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/Emoji.php
r51113 r51462 18 18 $output = get_echo( '_print_emoji_detection_script' ); 19 19 20 $this->assert Contains( wp_json_encode( $this->png_cdn ), $output );21 $this->assert Contains( wp_json_encode( $this->svn_cdn ), $output );20 $this->assertStringContainsString( wp_json_encode( $this->png_cdn ), $output ); 21 $this->assertStringContainsString( wp_json_encode( $this->svn_cdn ), $output ); 22 22 } 23 23 … … 38 38 $output = get_echo( '_print_emoji_detection_script' ); 39 39 40 $this->assert Contains( wp_json_encode( $this->png_cdn ), $output );41 $this->assert NotContains( wp_json_encode( $this->svn_cdn ), $output );42 $this->assert Contains( wp_json_encode( $filtered_svn_cdn ), $output );40 $this->assertStringContainsString( wp_json_encode( $this->png_cdn ), $output ); 41 $this->assertStringNotContainsString( wp_json_encode( $this->svn_cdn ), $output ); 42 $this->assertStringContainsString( wp_json_encode( $filtered_svn_cdn ), $output ); 43 43 44 44 remove_filter( 'emoji_svg_url', array( $this, '_filtered_emoji_svn_cdn' ) ); … … 61 61 $output = get_echo( '_print_emoji_detection_script' ); 62 62 63 $this->assert Contains( wp_json_encode( $filtered_png_cdn ), $output );64 $this->assert NotContains( wp_json_encode( $this->png_cdn ), $output );65 $this->assert Contains( wp_json_encode( $this->svn_cdn ), $output );63 $this->assertStringContainsString( wp_json_encode( $filtered_png_cdn ), $output ); 64 $this->assertStringNotContainsString( wp_json_encode( $this->png_cdn ), $output ); 65 $this->assertStringContainsString( wp_json_encode( $this->svn_cdn ), $output ); 66 66 67 67 remove_filter( 'emoji_url', array( $this, '_filtered_emoji_png_cdn' ) );
Note: See TracChangeset
for help on using the changeset viewer.