Changeset 52010 for trunk/tests/phpunit/tests/feed/rss2.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/feed/rss2.php
r51651 r52010 79 79 * This is a bit of a hack used to buffer feed content. 80 80 */ 81 function do_rss2() {81 private function do_rss2() { 82 82 ob_start(); 83 83 // Nasty hack! In the future it would better to leverage do_feed( 'rss2' ). … … 98 98 * with the expected child elements and attributes. 99 99 */ 100 function test_rss_element() {100 public function test_rss_element() { 101 101 $this->go_to( '/?feed=rss2' ); 102 102 $feed = $this->do_rss2(); … … 123 123 * @return [type] [description] 124 124 */ 125 function test_channel_element() {125 public function test_channel_element() { 126 126 $this->go_to( '/?feed=rss2' ); 127 127 $feed = $this->do_rss2(); … … 153 153 * @ticket 39141 154 154 */ 155 function test_channel_pubdate_element_translated() {155 public function test_channel_pubdate_element_translated() { 156 156 $original_locale = $GLOBALS['wp_locale']; 157 157 /* @var WP_Locale $locale */ … … 176 176 } 177 177 178 function test_item_elements() {178 public function test_item_elements() { 179 179 $this->go_to( '/?feed=rss2' ); 180 180 $feed = $this->do_rss2(); … … 267 267 * @ticket 9134 268 268 */ 269 function test_items_comments_closed() {269 public function test_items_comments_closed() { 270 270 add_filter( 'comments_open', '__return_false' ); 271 271 … … 302 302 * @ticket 30210 303 303 */ 304 function test_valid_home_feed_endpoint() {304 public function test_valid_home_feed_endpoint() { 305 305 // An example of a valid home feed endpoint. 306 306 $this->go_to( 'feed/' ); … … 330 330 * @ticket 30210 331 331 */ 332 function test_valid_taxonomy_feed_endpoint() {332 public function test_valid_taxonomy_feed_endpoint() { 333 333 // An example of an valid taxonomy feed endpoint. 334 334 $this->go_to( 'category/foo/feed/' ); … … 358 358 * @ticket 30210 359 359 */ 360 function test_valid_main_comment_feed_endpoint() {360 public function test_valid_main_comment_feed_endpoint() { 361 361 // Generate a bunch of comments. 362 362 foreach ( self::$posts as $post ) { … … 391 391 * @ticket 30210 392 392 */ 393 function test_valid_archive_feed_endpoint() {393 public function test_valid_archive_feed_endpoint() { 394 394 // An example of an valid date archive feed endpoint. 395 395 $this->go_to( '2003/05/27/feed/' ); … … 419 419 * @ticket 30210 420 420 */ 421 function test_valid_single_post_comment_feed_endpoint() {421 public function test_valid_single_post_comment_feed_endpoint() { 422 422 // An example of an valid date archive feed endpoint. 423 423 $this->go_to( get_post_comments_feed_link( self::$posts[0] ) ); … … 447 447 * @ticket 30210 448 448 */ 449 function test_valid_search_feed_endpoint() {449 public function test_valid_search_feed_endpoint() { 450 450 // An example of an valid search feed endpoint. 451 451 $this->go_to( '?s=Lorem&feed=rss' );
Note: See TracChangeset
for help on using the changeset viewer.