Changeset 52010 for trunk/tests/phpunit/tests/post/output.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/output.php
r51568 r52010 9 9 class Tests_Post_Output extends WP_UnitTestCase { 10 10 11 function set_up() {11 public function set_up() { 12 12 parent::set_up(); 13 add_shortcode( 'dumptag', array( $this, ' _shortcode_dumptag' ) );14 add_shortcode( 'paragraph', array( $this, ' _shortcode_paragraph' ) );15 } 16 17 function tear_down() {13 add_shortcode( 'dumptag', array( $this, 'shortcode_dumptag' ) ); 14 add_shortcode( 'paragraph', array( $this, 'shortcode_paragraph' ) ); 15 } 16 17 public function tear_down() { 18 18 global $shortcode_tags; 19 19 unset( $shortcode_tags['dumptag'], $shortcode_tags['paragraph'] ); … … 21 21 } 22 22 23 function _shortcode_dumptag( $atts ) {23 public function shortcode_dumptag( $atts ) { 24 24 $out = ''; 25 25 foreach ( $atts as $k => $v ) { … … 29 29 } 30 30 31 function _shortcode_paragraph( $atts, $content ) {31 public function shortcode_paragraph( $atts, $content ) { 32 32 $processed_atts = shortcode_atts( 33 33 array( … … 40 40 } 41 41 42 function test_the_content() {42 public function test_the_content() { 43 43 $post_content = <<<EOF 44 44 <i>This is the excerpt.</i> … … 63 63 } 64 64 65 function test_the_content_shortcode() {65 public function test_the_content_shortcode() { 66 66 $post_content = <<<EOF 67 67 [dumptag foo="bar" baz="123"] … … 91 91 } 92 92 93 function test_the_content_shortcode_paragraph() {93 public function test_the_content_shortcode_paragraph() { 94 94 $post_content = <<<EOF 95 95 Graf by itself: … … 129 129 } 130 130 131 function test_the_content_attribute_filtering() {131 public function test_the_content_attribute_filtering() { 132 132 kses_init_filters(); 133 133 … … 153 153 } 154 154 155 function test_the_content_attribute_value_with_colon() {155 public function test_the_content_attribute_value_with_colon() { 156 156 kses_init_filters(); 157 157
Note: See TracChangeset
for help on using the changeset viewer.