Changeset 48937 for trunk/tests/phpunit/tests/blocks/render.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/render.php
r47984 r48937 61 61 $actual_html = do_blocks( $original_html ); 62 62 63 $this->assert EqualsIgnoreEOL( $expected_html, $actual_html );63 $this->assertSameIgnoreEOL( $expected_html, $actual_html ); 64 64 } 65 65 … … 81 81 remove_shortcode( 'someshortcode' ); 82 82 83 $this->assert Equals( trim( $classic_filtered_content ), trim( $block_filtered_content ) );83 $this->assertSame( trim( $classic_filtered_content ), trim( $block_filtered_content ) ); 84 84 } 85 85 … … 122 122 } 123 123 124 $this->assert Equals( 'deep inside', do_blocks( $content ) );124 $this->assertSame( 'deep inside', do_blocks( $content ) ); 125 125 } 126 126 … … 143 143 ); 144 144 145 $this->assert Equals( $minimum_depth, (int) do_blocks( $content ) );145 $this->assertSame( $minimum_depth, (int) do_blocks( $content ) ); 146 146 } 147 147 … … 161 161 $filtered_content = trim( apply_filters( 'the_content', $test_content ) ); 162 162 163 $this->assert Equals( $expected_content, $filtered_content );163 $this->assertSame( $expected_content, $filtered_content ); 164 164 165 165 // Check that wpautop() is still defined in the same place. … … 175 175 $filtered_content = trim( apply_filters( 'the_content', $test_content ) ); 176 176 177 $this->assert Equals( $expected_content, $filtered_content );177 $this->assertSame( $expected_content, $filtered_content ); 178 178 179 179 $this->assertSame( $current_priority, has_action( 'the_content', 'wpautop' ) ); … … 223 223 $expected_html = self::strip_r( file_get_contents( $server_html_path ) ); 224 224 225 $this->assert Equals(225 $this->assertSame( 226 226 $expected_html, 227 227 $html, … … 253 253 254 254 $updated_post_content = do_blocks( $post_content ); 255 $this->assert Equals(255 $this->assertSame( 256 256 $updated_post_content, 257 257 'before' . … … 287 287 do_blocks( '<!-- wp:core/test /-->' ); 288 288 289 $this->assert Equals( $global_post, $post );289 $this->assertSame( $global_post, $post ); 290 290 } 291 291 … … 343 343 $data = unserialize( base64_decode( $output ) ); 344 344 345 $this->assert Equals( 'inner', $data[1] );345 $this->assertSame( 'inner', $data[1] ); 346 346 } 347 347 … … 371 371 $data = unserialize( base64_decode( $output ) ); 372 372 373 $this->assert Equals( 'before10after', $data[1] );373 $this->assertSame( 'before10after', $data[1] ); 374 374 } 375 375 … … 391 391 $inner = $this->render_serialize_dynamic_block( array(), 'deep inner' ); 392 392 393 $this->assert Equals( $data[1], 'before' . $inner . 'after' );393 $this->assertSame( $data[1], 'before' . $inner . 'after' ); 394 394 } 395 395
Note: See TracChangeset
for help on using the changeset viewer.