Changeset 51404 for trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
- Timestamp:
- 07/12/2021 10:35:44 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
r51367 r51404 446 446 447 447 // For good measure, check that the expected value is in the array. 448 $this->assert True( in_array( $enclosure_string, get_post_meta( $post_id, 'enclosure' ), true) );448 $this->assertContains( $enclosure_string, get_post_meta( $post_id, 'enclosure' ) ); 449 449 450 450 // Attempt to add a brand new enclosure via XML-RPC. … … 456 456 // Check that the new enclosure is in the enclosure meta. 457 457 $new_enclosure_string = "{$new_enclosure['url']}\n{$new_enclosure['length']}\n{$new_enclosure['type']}\n"; 458 $this->assert True( in_array( $new_enclosure_string, get_post_meta( $post_id, 'enclosure' ), true) );458 $this->assertContains( $new_enclosure_string, get_post_meta( $post_id, 'enclosure' ) ); 459 459 460 460 // Check that the old enclosure is in the enclosure meta. 461 $this->assert True( in_array( $enclosure_string, get_post_meta( $post_id, 'enclosure' ), true) );461 $this->assertContains( $enclosure_string, get_post_meta( $post_id, 'enclosure' ) ); 462 462 } 463 463
Note: See TracChangeset
for help on using the changeset viewer.