Changeset 63882 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 09/22/2026 11:20:03 PM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/taxonomy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r62761 r63882 392 392 $posts_with_terms = array_merge( $posts_with_tag, $posts_with_category ); 393 393 394 $this->assert Equals( $posts_with_tag, get_objects_in_term( $tag_id, 'post_tag' ) );395 $this->assert Equals( $posts_with_category, get_objects_in_term( $cat_id, 'category' ) );396 $this->assert Equals( $posts_with_terms, get_objects_in_term( array( $tag_id, $cat_id ), array( 'post_tag', 'category' ) ) );397 $this->assert Equals( array_reverse( $posts_with_tag), get_objects_in_term( $tag_id, 'post_tag', array( 'order' => 'desc' ) ) );394 $this->assertSame( array_map( 'strval', $posts_with_tag ), get_objects_in_term( $tag_id, 'post_tag' ) ); 395 $this->assertSame( array_map( 'strval', $posts_with_category ), get_objects_in_term( $cat_id, 'category' ) ); 396 $this->assertSame( array_map( 'strval', $posts_with_terms ), get_objects_in_term( array( $tag_id, $cat_id ), array( 'post_tag', 'category' ) ) ); 397 $this->assertSame( array_map( 'strval', array_reverse( $posts_with_tag ) ), get_objects_in_term( $tag_id, 'post_tag', array( 'order' => 'desc' ) ) ); 398 398 } 399 399
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)