Changeset 52010 for trunk/tests/phpunit/tests/term/termCounts.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/termCounts.php
r51568 r52010 105 105 * } 106 106 */ 107 function data_term_count_changes_for_post_statuses() {107 public function data_term_count_changes_for_post_statuses() { 108 108 return array( 109 109 // 0. Published post … … 147 147 * } 148 148 */ 149 function data_term_counts_incremented_on_publish() {149 public function data_term_counts_incremented_on_publish() { 150 150 return array( 151 151 // 0. Published post … … 170 170 * @param int $change Expected change upon publish. 171 171 */ 172 function test_term_count_transitions_update_term_counts( $original_post_status, $new_post_status, $change ) {172 public function test_term_count_transitions_update_term_counts( $original_post_status, $new_post_status, $change ) { 173 173 $post_id = self::$post_ids[ $original_post_status ]; 174 174 $term_count = get_term( get_option( 'default_category' ) )->count; … … 194 194 * } 195 195 */ 196 function data_term_count_transitions_update_term_counts() {196 public function data_term_count_transitions_update_term_counts() { 197 197 return array( 198 198 // 0. Draft -> published post … … 225 225 } 226 226 227 function add_custom_status_to_counted_statuses( $statuses ) {227 public function add_custom_status_to_counted_statuses( $statuses ) { 228 228 array_push( $statuses, 'custom' ); 229 229 return $statuses; … … 270 270 * } 271 271 */ 272 function data_term_count_changes_for_update_post_term_count_statuses_filter() {272 public function data_term_count_changes_for_update_post_term_count_statuses_filter() { 273 273 return array( 274 274 // 0. Published post … … 320 320 * } 321 321 */ 322 function data_term_count_changes_for_post_statuses_with_attachments() {322 public function data_term_count_changes_for_post_statuses_with_attachments() { 323 323 return array( 324 324 // 0. Published post … … 371 371 * } 372 372 */ 373 function data_term_counts_incremented_on_publish_with_attachments() {373 public function data_term_counts_incremented_on_publish_with_attachments() { 374 374 return array( 375 375 // 0. Published post … … 394 394 * @param int $change Expected change upon publish. 395 395 */ 396 function test_term_count_transitions_update_term_counts_with_attachments( $original_post_status, $new_post_status, $change ) {396 public function test_term_count_transitions_update_term_counts_with_attachments( $original_post_status, $new_post_status, $change ) { 397 397 $post_id = self::$post_ids[ $original_post_status ]; 398 398 wp_add_object_terms( $post_id, self::$attachment_term, 'wp_test_tax_counts' ); … … 427 427 * } 428 428 */ 429 function data_term_count_transitions_update_term_counts_with_attachments() {429 public function data_term_count_transitions_update_term_counts_with_attachments() { 430 430 return array( 431 431 // 0. Draft -> published post … … 495 495 * } 496 496 */ 497 function data_term_counts_incremented_on_publish_with_untermed_attachments() {497 public function data_term_counts_incremented_on_publish_with_untermed_attachments() { 498 498 return array( 499 499 // 0. Published post … … 518 518 * @param int $change Expected change upon publish. 519 519 */ 520 function test_term_count_transitions_update_term_counts_with_untermed_attachments( $original_post_status, $new_post_status, $change ) {520 public function test_term_count_transitions_update_term_counts_with_untermed_attachments( $original_post_status, $new_post_status, $change ) { 521 521 $post_id = self::$post_ids[ $original_post_status ]; 522 522 wp_add_object_terms( $post_id, self::$attachment_term, 'wp_test_tax_counts' ); … … 550 550 * } 551 551 */ 552 function data_term_count_transitions_update_term_counts_with_untermed_attachments() {552 public function data_term_count_transitions_update_term_counts_with_untermed_attachments() { 553 553 return array( 554 554 // 0. Draft -> published post
Note: See TracChangeset
for help on using the changeset viewer.