From 24852d4305d3ae6bf724992c4b198c8ac00152f4 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 10 Jul 2014 13:55:46 +0000 Subject: [PATCH] XMLRPC: Improve the test case from [28854] so that it truely tests an invalid date string like the test name implies. See #28601. git-svn-id: https://develop.svn.wordpress.org/trunk@29061 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/xmlrpc/wp/newPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/xmlrpc/wp/newPost.php b/tests/phpunit/tests/xmlrpc/wp/newPost.php index 4071391261..e421fbb30a 100644 --- a/tests/phpunit/tests/xmlrpc/wp/newPost.php +++ b/tests/phpunit/tests/xmlrpc/wp/newPost.php @@ -310,7 +310,7 @@ class Tests_XMLRPC_wp_newPost extends WP_XMLRPC_UnitTestCase { */ function test_invalid_post_date_does_not_fatal() { $this->make_user_by_role( 'author' ); - $date_string = '2014-01-01 10:10:10'; + $date_string = 'invalid_date'; $post = array( 'post_title' => 'test', 'post_content' => 'test', 'post_date' => $date_string ); $result = $this->myxmlrpcserver->wp_newPost( array( 1, 'author', 'author', $post ) ); $fetched_post = get_post( $result );