Changeset 35242 for trunk/tests/phpunit/tests/query/isTerm.php
- Timestamp:
- 10/17/2015 06:02:16 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/isTerm.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/isTerm.php
r35225 r35242 38 38 flush_rewrite_rules(); 39 39 40 $this->tag_id = self:: $factory->tag->create( array( 'slug' => 'tag-slug' ) );41 $this->cat_id = self:: $factory->category->create( array( 'slug' => 'cat-slug' ) );42 $this->tax_id = self:: $factory->term->create( array( 'taxonomy' => 'testtax', 'slug' => 'tax-slug' ) );43 $this->tax_id2 = self:: $factory->term->create( array( 'taxonomy' => 'testtax', 'slug' => 'tax-slug2' ) );44 $this->post_id = self:: $factory->post->create();40 $this->tag_id = self::factory()->tag->create( array( 'slug' => 'tag-slug' ) ); 41 $this->cat_id = self::factory()->category->create( array( 'slug' => 'cat-slug' ) ); 42 $this->tax_id = self::factory()->term->create( array( 'taxonomy' => 'testtax', 'slug' => 'tax-slug' ) ); 43 $this->tax_id2 = self::factory()->term->create( array( 'taxonomy' => 'testtax', 'slug' => 'tax-slug2' ) ); 44 $this->post_id = self::factory()->post->create(); 45 45 wp_set_object_terms( $this->post_id, $this->cat_id, 'category' ); 46 46 wp_set_object_terms( $this->post_id, array( $this->tax_id, $this->tax_id2 ), 'testtax' ); … … 246 246 247 247 register_taxonomy( 'testtax2', 'post' ); 248 $testtax2_term_id = self:: $factory->term->create( array(248 $testtax2_term_id = self::factory()->term->create( array( 249 249 'taxonomy' => 'testtax2', 250 250 'slug' => 'testtax2-slug',
Note: See TracChangeset
for help on using the changeset viewer.