Changeset 52010 for trunk/tests/phpunit/tests/import/postmeta.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/import/postmeta.php
r51568 r52010 7 7 */ 8 8 class Tests_Import_Postmeta extends WP_Import_UnitTestCase { 9 function set_up() {9 public function set_up() { 10 10 parent::set_up(); 11 11 … … 25 25 } 26 26 27 function test_serialized_postmeta_no_cdata() {27 public function test_serialized_postmeta_no_cdata() { 28 28 $this->_import_wp( DIR_TESTDATA . '/export/test-serialized-postmeta-no-cdata.xml', array( 'johncoswell' => 'john' ) ); 29 29 $expected['special_post_title'] = 'A special title'; … … 32 32 } 33 33 34 function test_utw_postmeta() {34 public function test_utw_postmeta() { 35 35 $this->_import_wp( DIR_TESTDATA . '/export/test-utw-post-meta-import.xml', array( 'johncoswell' => 'john' ) ); 36 36 … … 81 81 * @ticket 9633 82 82 */ 83 function test_serialized_postmeta_with_cdata() {83 public function test_serialized_postmeta_with_cdata() { 84 84 $this->_import_wp( DIR_TESTDATA . '/export/test-serialized-postmeta-with-cdata.xml', array( 'johncoswell' => 'johncoswell' ) ); 85 85 … … 95 95 * @ticket 11574 96 96 */ 97 function test_serialized_postmeta_with_evil_stuff_in_cdata() {97 public 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 99 // Evil content in the CDATA.
Note: See TracChangeset
for help on using the changeset viewer.