Changeset 35242 for trunk/tests/phpunit/tests/term/getTermLink.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTermLink.php
r35225 r35242 13 13 14 14 public function test_integer_should_be_interpreted_as_term_id() { 15 $t1 = self:: $factory->term->create( array(15 $t1 = self::factory()->term->create( array( 16 16 'taxonomy' => 'wptests_tax', 17 17 'name' => 'foo', 18 18 ) ); 19 $t2 = self:: $factory->term->create( array(19 $t2 = self::factory()->term->create( array( 20 20 'taxonomy' => 'wptests_tax', 21 21 'slug' => $t1, … … 29 29 30 30 public function test_numeric_string_should_be_interpreted_as_term_slug() { 31 $t1 = self:: $factory->term->create( array(31 $t1 = self::factory()->term->create( array( 32 32 'taxonomy' => 'wptests_tax', 33 33 'name' => 'foo', 34 34 ) ); 35 $t2 = self:: $factory->term->create( array(35 $t2 = self::factory()->term->create( array( 36 36 'taxonomy' => 'wptests_tax', 37 37 'slug' => $t1, … … 50 50 51 51 public function test_category_should_use_cat_query_var_with_term_id() { 52 $c = self:: $factory->category->create();52 $c = self::factory()->category->create(); 53 53 54 54 $actual = get_term_link( $c, 'category' ); … … 61 61 ) ); 62 62 63 $t = self:: $factory->term->create( array(63 $t = self::factory()->term->create( array( 64 64 'taxonomy' => 'wptests_tax2', 65 65 'slug' => 'bar', … … 75 75 ) ); 76 76 77 $t = self:: $factory->term->create( array(77 $t = self::factory()->term->create( array( 78 78 'taxonomy' => 'wptests_tax2', 79 79 'slug' => 'bar', … … 98 98 flush_rewrite_rules(); 99 99 100 $t1 = self:: $factory->term->create( array(100 $t1 = self::factory()->term->create( array( 101 101 'taxonomy' => 'wptests_tax2', 102 102 'slug' => 'term1', 103 103 ) ); 104 104 105 $t2 = self:: $factory->term->create( array(105 $t2 = self::factory()->term->create( array( 106 106 'taxonomy' => 'wptests_tax2', 107 107 'slug' => 'term2', … … 127 127 flush_rewrite_rules(); 128 128 129 $t1 = self:: $factory->term->create( array(129 $t1 = self::factory()->term->create( array( 130 130 'taxonomy' => 'wptests_tax2', 131 131 'slug' => 'term1', 132 132 ) ); 133 133 134 $t2 = self:: $factory->term->create( array(134 $t2 = self::factory()->term->create( array( 135 135 'taxonomy' => 'wptests_tax2', 136 136 'slug' => 'term2',
Note: See TracChangeset
for help on using the changeset viewer.