Skip to content

Commit

Permalink
Fix test failure in WP 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jul 24, 2020
1 parent 88d5ae9 commit 9d7260f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/php/src/ObsoleteBlockAttributeRemoverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public function get_block_data() {
* @param int $expected_prop_count
*/
public function test_filter_rest_prepare_post_raw( $block_content, $expected_prop_count ) {
if ( ! function_exists( 'parse_blocks' ) ) {
$this->markTestSkipped();
}
$block_content = str_replace( "\t", '', trim( $block_content ) );

$parsed_blocks = parse_blocks( $block_content );
Expand Down

0 comments on commit 9d7260f

Please sign in to comment.