From 218924d9ee06b331444d35cc8b0112460642a3b6 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sat, 8 Nov 2014 23:14:28 +0000 Subject: [PATCH] Remove failing Unbalanced tags tests Patch with tests added to #6297 for use in the future Props MikeHansenMe for creating patch of current unit test see #30284 git-svn-id: https://develop.svn.wordpress.org/trunk@30291 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/filtering.php | 100 ------------------------- 1 file changed, 100 deletions(-) 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() {