Changeset 51367 for trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
- Timestamp:
- 07/07/2021 10:32:56 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
r51331 r51367 443 443 444 444 // Verify that there is only a single value in the array and that a duplicate is not present. 445 $this->assert Same( 1, count( get_post_meta( $post_id, 'enclosure' )) );445 $this->assertCount( 1, get_post_meta( $post_id, 'enclosure' ) ); 446 446 447 447 // For good measure, check that the expected value is in the array. … … 452 452 453 453 // Having added the new enclosure, 2 values are expected in the array. 454 $this->assert Same( 2, count( get_post_meta( $post_id, 'enclosure' )) );454 $this->assertCount( 2, get_post_meta( $post_id, 'enclosure' ) ); 455 455 456 456 // Check that the new enclosure is in the enclosure meta.
Note: See TracChangeset
for help on using the changeset viewer.