Changeset 47122 for trunk/tests/phpunit/tests/import/postmeta.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/import/postmeta.php
r46586 r47122 84 84 $this->_import_wp( DIR_TESTDATA . '/export/test-serialized-postmeta-with-cdata.xml', array( 'johncoswell' => 'johncoswell' ) ); 85 85 86 // HTML in the CDATA should work with old WordPress version86 // HTML in the CDATA should work with old WordPress version. 87 87 $this->assertEquals( '<pre>some html</pre>', get_post_meta( 10, 'contains-html', true ) ); 88 // Serialised will only work with 3.0 onwards.88 // Serialised will only work with 3.0 onwards. 89 89 $expected['special_post_title'] = 'A special title'; 90 90 $expected['is_calendar'] = ''; … … 97 97 function test_serialized_postmeta_with_evil_stuff_in_cdata() { 98 98 $this->_import_wp( DIR_TESTDATA . '/export/test-serialized-postmeta-with-cdata.xml', array( 'johncoswell' => 'johncoswell' ) ); 99 // evil content in the CDATA99 // Evil content in the CDATA. 100 100 $this->assertEquals( '<wp:meta_value>evil</wp:meta_value>', get_post_meta( 10, 'evil', true ) ); 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.