Changeset 61173 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 11/07/2025 02:59:09 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r61172 r61173 827 827 public function test_wp_insert_post_handle_malformed_post_date( $input, $expected ) { 828 828 $post = array( 829 'post_author' => self::$ editor_id,829 'post_author' => self::$user_ids['editor'], 830 830 'post_status' => 'publish', 831 831 'post_content' => 'content', … … 894 894 true, 895 895 ), 896 // Dates without leading zeros (valid but malformed format). 897 array( 898 '2012-08-1', 899 true, 900 ), 901 array( 902 '2012-1-08 00:00:00', 903 true, 904 ), 905 array( 906 '2012-01-8 00:00:00', 907 true, 908 ), 896 909 // Failures. 897 910 array( … … 900 913 ), 901 914 array( 902 '2012-08-1',903 false,904 ),905 array(906 915 '201-01-08 00:00:00', 907 916 false, … … 916 925 ), 917 926 array( 918 '2012-1-08 00:00:00',919 false,920 ),921 array(922 927 '2012-31-08 00:00:00', 923 false,924 ),925 array(926 '2012-01-8 00:00:00',927 928 false, 928 929 ), … … 1017 1018 '2012-01-01 00:00:60', 1018 1019 ), 1020 // Dates without leading zeros (valid but malformed format). 1021 array( 1022 '2012-1-08', 1023 '2012-1-08', 1024 ), 1025 array( 1026 '2012-01-8', 1027 '2012-01-8', 1028 ), 1019 1029 array( 1020 1030 '201-01-08', … … 1026 1036 ), 1027 1037 array( 1028 '2012-1-08',1029 false,1030 ),1031 array(1032 1038 '2012-31-08', 1033 false,1034 ),1035 array(1036 '2012-01-8',1037 1039 false, 1038 1040 ),
Note: See TracChangeset
for help on using the changeset viewer.