Changeset 45607 for trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
r45424 r45607 446 446 447 447 // For good measure, check that the expected value is in the array 448 $this->assertTrue( in_array( $enclosure_string, get_post_meta( $post_id, 'enclosure' ) ) );448 $this->assertTrue( in_array( $enclosure_string, get_post_meta( $post_id, 'enclosure' ), true ) ); 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->assertTrue( in_array( $new_enclosure_string, get_post_meta( $post_id, 'enclosure' ) ) );458 $this->assertTrue( in_array( $new_enclosure_string, get_post_meta( $post_id, 'enclosure' ), true ) ); 459 459 460 460 // Check that the old enclosure is in the enclosure meta 461 $this->assertTrue( in_array( $enclosure_string, get_post_meta( $post_id, 'enclosure' ) ) );461 $this->assertTrue( in_array( $enclosure_string, get_post_meta( $post_id, 'enclosure' ), true ) ); 462 462 } 463 463
Note: See TracChangeset
for help on using the changeset viewer.