Changeset 54402 for trunk/tests/phpunit/tests/post/wpInsertPost.php
- Timestamp:
- 10/07/2022 01:02:07 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/wpInsertPost.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpInsertPost.php
r54088 r54402 901 901 $assigned_terms = wp_get_object_terms( array( $post_id ), array( 'category' ), array() ); 902 902 $this->assertCount( 1, $assigned_terms ); 903 $this->assert Equals( $term_id, $assigned_terms[0]->term_id );903 $this->assertSame( $term_id, $assigned_terms[0]->term_id ); 904 904 905 905 // Update the post with no changes. … … 910 910 $assigned_terms = wp_get_object_terms( array( $post_id ), array( 'category' ), array() ); 911 911 $this->assertCount( 1, $assigned_terms ); 912 $this->assert Equals( $term_id, $assigned_terms[0]->term_id );912 $this->assertSame( $term_id, $assigned_terms[0]->term_id ); 913 913 914 914 // Remove the term from the post.
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)