Changeset 35242 for trunk/tests/phpunit/tests/term/termExists.php
- Timestamp:
- 10/17/2015 06:02:16 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/termExists.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/termExists.php
r35225 r35242 10 10 11 11 public function test_term_exists_term_int_taxonomy_nonempty_term_exists() { 12 $t = self:: $factory->term->create( array(12 $t = self::factory()->term->create( array( 13 13 'taxonomy' => 'post_tag', 14 14 ) ); … … 23 23 24 24 public function test_term_exists_term_int_taxonomy_nonempty_wrong_taxonomy() { 25 $t = self:: $factory->term->create( array(25 $t = self::factory()->term->create( array( 26 26 'taxonomy' => 'post_tag', 27 27 ) ); … … 31 31 32 32 public function test_term_exists_term_int_taxonomy_empty_term_exists() { 33 $t = self:: $factory->term->create( array(33 $t = self::factory()->term->create( array( 34 34 'taxonomy' => 'post_tag', 35 35 ) ); … … 44 44 45 45 public function test_term_exists_unslash_term() { 46 $t = self:: $factory->term->create( array(46 $t = self::factory()->term->create( array( 47 47 'taxonomy' => 'post_tag', 48 48 'name' => 'I "love" WordPress\'s taxonomy system', … … 54 54 55 55 public function test_term_exists_trim_term() { 56 $t = self:: $factory->term->create( array(56 $t = self::factory()->term->create( array( 57 57 'taxonomy' => 'post_tag', 58 58 'slug' => 'foo', … … 85 85 ) ); 86 86 87 $parent_term = self:: $factory->term->create( array(88 'taxonomy' => 'foo', 89 ) ); 90 91 $t = self:: $factory->term->create( array(87 $parent_term = self::factory()->term->create( array( 88 'taxonomy' => 'foo', 89 ) ); 90 91 $t = self::factory()->term->create( array( 92 92 'taxonomy' => 'foo', 93 93 'parent' => $parent_term, … … 111 111 ) ); 112 112 113 $parent_term = self:: $factory->term->create( array(114 'taxonomy' => 'foo', 115 ) ); 116 117 $t = self:: $factory->term->create( array(113 $parent_term = self::factory()->term->create( array( 114 'taxonomy' => 'foo', 115 ) ); 116 117 $t = self::factory()->term->create( array( 118 118 'taxonomy' => 'foo', 119 119 'parent' => $parent_term, … … 133 133 ) ); 134 134 135 $parent_term = self:: $factory->term->create( array(136 'taxonomy' => 'foo', 137 ) ); 138 139 $t = self:: $factory->term->create( array(135 $parent_term = self::factory()->term->create( array( 136 'taxonomy' => 'foo', 137 ) ); 138 139 $t = self::factory()->term->create( array( 140 140 'taxonomy' => 'foo', 141 141 'parent' => $parent_term, … … 154 154 register_taxonomy( 'foo', 'post', array() ); 155 155 156 $t = self:: $factory->term->create( array(156 $t = self::factory()->term->create( array( 157 157 'taxonomy' => 'foo', 158 158 'slug' => 'kewl-dudez', … … 170 170 register_taxonomy( 'foo', 'post', array() ); 171 171 172 $t = self:: $factory->term->create( array(172 $t = self::factory()->term->create( array( 173 173 'taxonomy' => 'foo', 174 174 'name' => 'Kewl Dudez', … … 186 186 register_taxonomy( 'foo', 'post', array() ); 187 187 188 $t = self:: $factory->term->create( array(188 $t = self::factory()->term->create( array( 189 189 'taxonomy' => 'foo', 190 190 'name' => 'juicy-fruit', … … 202 202 register_taxonomy( 'foo', 'post', array() ); 203 203 204 $t = self:: $factory->term->create( array(204 $t = self::factory()->term->create( array( 205 205 'taxonomy' => 'foo', 206 206 'name' => 'Juicy Fruit',
Note: See TracChangeset
for help on using the changeset viewer.