Changeset 35242 for trunk/tests/phpunit/tests/term/wpGenerateTagCloud.php
- Timestamp:
- 10/17/2015 06:02:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpGenerateTagCloud.php
r35225 r35242 28 28 */ 29 29 function test_empty_tags_list_returned( $expected, $args ) { 30 $term_ids = self:: $factory->term->create_many( 4, array( 'taxonomy' => 'post_tag' ) );30 $term_ids = self::factory()->term->create_many( 4, array( 'taxonomy' => 'post_tag' ) ); 31 31 $this->terms = array(); 32 32 foreach ( $term_ids as $term_id ) { … … 72 72 73 73 function test_hide_empty_false() { 74 $term_id = self:: $factory->tag->create();74 $term_id = self::factory()->tag->create(); 75 75 $term = get_term( $term_id, 'post_tag' ); 76 76 … … 86 86 87 87 function test_hide_empty_false_format_array() { 88 $term_id = self:: $factory->tag->create();88 $term_id = self::factory()->tag->create(); 89 89 $term = get_term( $term_id, 'post_tag' ); 90 90 … … 102 102 103 103 function test_hide_empty_false_format_list() { 104 $term_id = self:: $factory->tag->create();104 $term_id = self::factory()->tag->create(); 105 105 $term = get_term( $term_id, 'post_tag' ); 106 106 … … 118 118 119 119 function test_hide_empty_false_multi() { 120 $term_ids = self:: $factory->tag->create_many( 4 );120 $term_ids = self::factory()->tag->create_many( 4 ); 121 121 $terms = array(); 122 122 foreach ( $term_ids as $term_id ) { … … 140 140 141 141 function test_hide_empty_false_multi_format_list() { 142 $term_ids = self:: $factory->tag->create_many( 4 );142 $term_ids = self::factory()->tag->create_many( 4 ); 143 143 $terms = array(); 144 144 foreach ( $term_ids as $term_id ) { … … 167 167 public function test_topic_count_text() { 168 168 register_taxonomy( 'wptests_tax', 'post' ); 169 $term_ids = self:: $factory->term->create_many( 2, array( 'taxonomy' => 'wptests_tax' ) );169 $term_ids = self::factory()->term->create_many( 2, array( 'taxonomy' => 'wptests_tax' ) ); 170 170 $this->terms = array(); 171 171 foreach ( $term_ids as $term_id ) { 172 172 $this->terms[] = get_term( $term_id, 'post_tag' ); 173 173 } 174 $posts = self:: $factory->post->create_many( 2 );174 $posts = self::factory()->post->create_many( 2 ); 175 175 176 176 wp_set_post_terms( $posts[0], $term_ids, 'wptests_tax' ); … … 197 197 public function test_topic_count_text_callback() { 198 198 register_taxonomy( 'wptests_tax', 'post' ); 199 $term_ids = self:: $factory->term->create_many( 2, array( 'taxonomy' => 'wptests_tax' ) );199 $term_ids = self::factory()->term->create_many( 2, array( 'taxonomy' => 'wptests_tax' ) ); 200 200 $this->terms = array(); 201 201 foreach ( $term_ids as $term_id ) { 202 202 $this->terms[] = get_term( $term_id, 'post_tag' ); 203 203 } 204 $posts = self:: $factory->post->create_many( 2 );204 $posts = self::factory()->post->create_many( 2 ); 205 205 206 206 wp_set_post_terms( $posts[0], $term_ids, 'wptests_tax' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)