diff --git a/tests/phpunit/tests/post/filtering.php b/tests/phpunit/tests/post/filtering.php index fff1b20304..57c4ed7b72 100644 --- a/tests/phpunit/tests/post/filtering.php +++ b/tests/phpunit/tests/post/filtering.php @@ -90,106 +90,6 @@ EOF; $this->assertEquals( $expected, $post->post_content ); } - /** - * make sure unbalanced tags are fixed when they span a --more-- tag - * @ticket 6297 - */ - function test_post_content_unbalanced_more() { - $content = <<some text -that's continued after the jump -EOF; - - $expected = <<some text -that's continued after the jump -EOF; - - $id = $this->factory->post->create( array( 'post_content' => $content ) ); - $post = get_post($id); - - $this->assertEquals( $expected, $post->post_content ); - } - - /** - * make sure unbalanced tags are fixed when they span a --nextpage-- tag - * @ticket 6297 - */ - function test_post_content_unbalanced_nextpage() { - $content = <<some text -that's continued after the jump -EOF; - - $expected = <<some text -that's continued after the jump -EOF; - - $id = $this->factory->post->create( array( 'post_content' => $content ) ); - $post = get_post($id); - - $this->assertEquals( $expected, $post->post_content ); - } - - /** - * make sure unbalanced tags are fixed when they span both --more-- and --nextpage-- tags (in that order) - * @ticket 6297 - */ - function test_post_content_unbalanced_more_nextpage() { - $content = <<some text -that's continued after the jump - -

and the next page - -breaks the graf

-EOF; - - $expected = <<some text -that's continued after the jump - -

and the next page -

-breaks the graf -EOF; - - $id = $this->factory->post->create( array( 'post_content' => $content ) ); - $post = get_post($id); - - $this->assertEquals( $expected, $post->post_content ); - } - - /** - * make sure unbalanced tags are fixed when they span both --nextpage-- and --more-- tags (in that order) - * @ticket 6297 - */ - function test_post_content_unbalanced_nextpage_more() { - $content = <<some text -that's continued after the jump - -

and the next page - -breaks the graf

-EOF; - - $expected = <<some text -that's continued after the jump - -

and the next page -

-breaks the graf -EOF; - - $id = $this->factory->post->create( array( 'post_content' => $content ) ); - $post = get_post($id); - - $this->assertEquals( $expected, $post->post_content ); - } - // make sure unbalanced tags are untouched when the balance option is off function test_post_content_nobalance_nextpage_more() {