Changeset 43571 for trunk/tests/phpunit/tests/term/getTagLink.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTagLink.php
r42366 r43571 7 7 class Tests_Term_GetTagLink extends WP_UnitTestCase { 8 8 public function test_success() { 9 $t = self::factory()->term->create( array( 10 'taxonomy' => 'post_tag', 11 'slug' => 'term-slug', 12 ) ); 9 $t = self::factory()->term->create( 10 array( 11 'taxonomy' => 'post_tag', 12 'slug' => 'term-slug', 13 ) 14 ); 13 15 14 $found = get_tag_link( $t );16 $found = get_tag_link( $t ); 15 17 $expected = home_url( '?tag=term-slug' ); 16 18 … … 24 26 register_taxonomy( 'wptests_tax', 'post' ); 25 27 26 $t = self::factory()->term->create( array( 27 'taxonomy' => 'wptests_tax', 28 'slug' => 'test-term', 29 ) ); 28 $t = self::factory()->term->create( 29 array( 30 'taxonomy' => 'wptests_tax', 31 'slug' => 'test-term', 32 ) 33 ); 30 34 31 35 $term = get_term( $t ); 32 36 33 $found = get_tag_link( $t );37 $found = get_tag_link( $t ); 34 38 $expected = home_url( '?wptests_tax=test-term' ); 35 39 … … 43 47 register_taxonomy( 'wptests_tax', 'post' ); 44 48 45 $t = self::factory()->term->create( array( 46 'taxonomy' => 'wptests_tax', 47 'slug' => 'test-term', 48 ) ); 49 $t = self::factory()->term->create( 50 array( 51 'taxonomy' => 'wptests_tax', 52 'slug' => 'test-term', 53 ) 54 ); 49 55 50 56 clean_term_cache( $t ); 51 57 52 $found = get_tag_link( $t );58 $found = get_tag_link( $t ); 53 59 $expected = home_url( '?wptests_tax=test-term' ); 54 60
Note: See TracChangeset
for help on using the changeset viewer.