Changeset 43571 for trunk/tests/phpunit/tests/category/getCategoryLink.php
- Timestamp:
- 08/17/2018 01:50:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/category/getCategoryLink.php
r42365 r43571 9 9 $c = self::factory()->category->create(); 10 10 11 $found = get_category_link( $c );11 $found = get_category_link( $c ); 12 12 $expected = home_url( '?cat=' . $c ); 13 13 … … 21 21 register_taxonomy( 'wptests_tax', 'post' ); 22 22 23 $t = self::factory()->term->create( array( 24 'taxonomy' => 'wptests_tax', 25 'slug' => 'test-term', 26 ) ); 23 $t = self::factory()->term->create( 24 array( 25 'taxonomy' => 'wptests_tax', 26 'slug' => 'test-term', 27 ) 28 ); 27 29 28 30 $term = get_term( $t ); 29 31 30 $found = get_category_link( $t );32 $found = get_category_link( $t ); 31 33 $expected = home_url( '?wptests_tax=test-term' ); 32 34 … … 40 42 register_taxonomy( 'wptests_tax', 'post' ); 41 43 42 $t = self::factory()->term->create( array( 43 'taxonomy' => 'wptests_tax', 44 'slug' => 'test-term', 45 ) ); 44 $t = self::factory()->term->create( 45 array( 46 'taxonomy' => 'wptests_tax', 47 'slug' => 'test-term', 48 ) 49 ); 46 50 47 51 clean_term_cache( $t ); 48 52 49 $found = get_category_link( $t );53 $found = get_category_link( $t ); 50 54 $expected = home_url( '?wptests_tax=test-term' ); 51 55
Note: See TracChangeset
for help on using the changeset viewer.