Changeset 42343 for trunk/tests/phpunit/tests/post/filtering.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/filtering.php
r35242 r42343 11 11 function setUp() { 12 12 parent::setUp(); 13 update_option( 'use_balanceTags', 1);13 update_option( 'use_balanceTags', 1 ); 14 14 kses_init_filters(); 15 15 … … 32 32 EOF; 33 33 34 $id = self::factory()->post->create( array( 'post_content' => $content ) );35 $post = get_post( $id);34 $id = self::factory()->post->create( array( 'post_content' => $content ) ); 35 $post = get_post( $id ); 36 36 37 37 $this->assertEquals( $expected, $post->post_content ); … … 49 49 EOF; 50 50 51 $id = self::factory()->post->create( array( 'post_content' => $content ) );52 $post = get_post( $id);51 $id = self::factory()->post->create( array( 'post_content' => $content ) ); 52 $post = get_post( $id ); 53 53 54 54 $this->assertEquals( $expected, $post->post_content ); … … 66 66 EOF; 67 67 68 $id = self::factory()->post->create( array( 'post_content' => $content ) );69 $post = get_post( $id);68 $id = self::factory()->post->create( array( 'post_content' => $content ) ); 69 $post = get_post( $id ); 70 70 71 71 $this->assertEquals( $expected, $post->post_content ); … … 74 74 /** 75 75 * test kses bug. xhtml does not require space before closing empty element 76 * 76 77 * @ticket 12394 77 78 */ … … 85 86 EOF; 86 87 87 $id = self::factory()->post->create( array( 'post_content' => $content ) );88 $post = get_post( $id);88 $id = self::factory()->post->create( array( 'post_content' => $content ) ); 89 $post = get_post( $id ); 89 90 90 91 $this->assertEquals( $expected, $post->post_content ); … … 94 95 function test_post_content_nobalance_nextpage_more() { 95 96 96 update_option( 'use_balanceTags', 0);97 update_option( 'use_balanceTags', 0 ); 97 98 98 99 $content = <<<EOF … … 105 106 EOF; 106 107 107 $id = self::factory()->post->create( array( 'post_content' => $content ) );108 $post = get_post( $id);108 $id = self::factory()->post->create( array( 'post_content' => $content ) ); 109 $post = get_post( $id ); 109 110 110 111 $this->assertEquals( $content, $post->post_content );
Note: See TracChangeset
for help on using the changeset viewer.