Changeset 52010 for trunk/tests/phpunit/tests/post/filtering.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/filtering.php
r51568 r52010 11 11 */ 12 12 class Tests_Post_Filtering extends WP_UnitTestCase { 13 function set_up() {13 public function set_up() { 14 14 parent::set_up(); 15 15 update_option( 'use_balanceTags', 1 ); … … 18 18 } 19 19 20 function tear_down() {20 public function tear_down() { 21 21 kses_remove_filters(); 22 22 parent::tear_down(); … … 24 24 25 25 // A simple test to make sure unclosed tags are fixed. 26 function test_post_content_unknown_tag() {26 public function test_post_content_unknown_tag() { 27 27 28 28 $content = <<<EOF … … 41 41 42 42 // A simple test to make sure unbalanced tags are fixed. 43 function test_post_content_unbalanced_tag() {43 public function test_post_content_unbalanced_tag() { 44 44 45 45 $content = <<<EOF … … 58 58 59 59 // Test KSES filtering of disallowed attribute. 60 function test_post_content_disallowed_attr() {60 public function test_post_content_disallowed_attr() { 61 61 62 62 $content = <<<EOF … … 79 79 * @ticket 12394 80 80 */ 81 function test_post_content_xhtml_empty_elem() {81 public function test_post_content_xhtml_empty_elem() { 82 82 $content = <<<EOF 83 83 <img src='foo' width='500' height='300'/> … … 95 95 96 96 // Make sure unbalanced tags are untouched when the balance option is off. 97 function test_post_content_nobalance_nextpage_more() {97 public function test_post_content_nobalance_nextpage_more() { 98 98 99 99 update_option( 'use_balanceTags', 0 );
Note: See TracChangeset
for help on using the changeset viewer.