Changeset 25287 for trunk/tests/phpunit/tests/query/conditionals.php
- Timestamp:
- 09/06/2013 05:26:04 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/conditionals.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/conditionals.php
r25280 r25287 429 429 // 'tag/(.+?)/?$' => 'index.php?tag=$matches[1]', 430 430 function test_tag() { 431 $t his->factory->term->create( array( 'name' => 'tag-a', 'taxonomy' => 'post_tag' ) );431 $term_id = $this->factory->term->create( array( 'name' => 'Tag Named A', 'slug' => 'tag-a', 'taxonomy' => 'post_tag' ) ); 432 432 $this->go_to('/tag/tag-a/'); 433 433 $this->assertQueryTrue('is_archive', 'is_tag'); 434 435 $tag = get_term( $term_id, 'post_tag' ); 436 437 $this->assertTrue( is_tag() ); 438 $this->assertTrue( is_tag( $tag->name ) ); 439 $this->assertTrue( is_tag( $tag->slug ) ); 440 $this->assertTrue( is_tag( $tag->term_id ) ); 441 $this->assertTrue( is_tag( array() ) ); 442 $this->assertTrue( is_tag( array( $tag->name ) ) ); 443 $this->assertTrue( is_tag( array( $tag->slug ) ) ); 444 $this->assertTrue( is_tag( array( $tag->term_id ) ) ); 434 445 } 435 446
Note:
See TracChangeset
for help on using the changeset viewer.