Changeset 48939 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r48937 r48939 1379 1379 1380 1380 $tags = wp_get_post_tags( $post->ID, array( 'fields' => 'ids' ) ); 1381 $this->assert EqualSets( array( $tag_1['term_id'], $tag_2['term_id'] ), $tags );1381 $this->assertSameSets( array( $tag_1['term_id'], $tag_2['term_id'] ), $tags ); 1382 1382 1383 1383 wp_update_post( $post ); 1384 1384 1385 1385 $tags = wp_get_post_tags( $post->ID, array( 'fields' => 'ids' ) ); 1386 $this->assert EqualSets( array( $tag_1['term_id'], $tag_2['term_id'] ), $tags );1386 $this->assertSameSets( array( $tag_1['term_id'], $tag_2['term_id'] ), $tags ); 1387 1387 1388 1388 wp_update_post( … … 1394 1394 1395 1395 $tags = wp_get_post_tags( $post->ID, array( 'fields' => 'ids' ) ); 1396 $this->assert EqualSets( array( $tag_2['term_id'], $tag_3['term_id'] ), $tags );1396 $this->assertSameSets( array( $tag_2['term_id'], $tag_3['term_id'] ), $tags ); 1397 1397 } 1398 1398 }
Note: See TracChangeset
for help on using the changeset viewer.