Make WordPress Core

Changeset 29061


Ignore:
Timestamp:
07/10/2014 01:55:46 PM (10 years ago)
Author:
westi
Message:

XMLRPC: Improve the test case from [28854] so that it truely tests an invalid date string like the test name implies. See #28601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/wp/newPost.php

    r28854 r29061  
    311311    function test_invalid_post_date_does_not_fatal() {
    312312        $this->make_user_by_role( 'author' );
    313         $date_string = '2014-01-01 10:10:10';
     313        $date_string = 'invalid_date';
    314314        $post = array( 'post_title' => 'test', 'post_content' => 'test', 'post_date' => $date_string );
    315315        $result = $this->myxmlrpcserver->wp_newPost( array( 1, 'author', 'author', $post ) );
Note: See TracChangeset for help on using the changeset viewer.