WordPress.org

Make WordPress Core

Changeset 857 in tests


Ignore:
Timestamp:
07/02/12 10:49:20 (22 months ago)
Author:
duck_
Message:

Set full date-time when creating posts to prevent notices in get_gmt_from_date()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testcase/test_includes_canonical.php

    r849 r857  
    3838        $this->term_ids = array(); 
    3939 
    40         $this->factory->post->create( array( 'import_id' => 587, 'post_title' => 'post-format-test-audio', 'post_date' => '2008-06-02' ) ); 
    41         $post_id = $this->factory->post->create( array( 'post_title' => 'post-format-test-gallery', 'post_date' => '2008-06-10' ) ); 
     40        $this->factory->post->create( array( 'import_id' => 587, 'post_title' => 'post-format-test-audio', 'post_date' => '2008-06-02 00:00:00' ) ); 
     41        $post_id = $this->factory->post->create( array( 'post_title' => 'post-format-test-gallery', 'post_date' => '2008-06-10 00:00:00' ) ); 
    4242        $this->factory->post->create( array( 'import_id' => 611, 'post_type' => 'attachment', 'post_title' => 'canola2', 'post_parent' => $post_id ) ); 
    4343 
    4444        $this->factory->post->create( array( 
    4545            'post_title' => 'images-test', 
    46             'post_date' => '2008-09-03', 
     46            'post_date' => '2008-09-03 00:00:00', 
    4747            'post_content' => 'Page 1 <!--nextpage--> Page 2 <!--nextpage--> Page 3' 
    4848        ) ); 
    4949 
    50         $post_id = $this->factory->post->create( array( 'import_id' => 149, 'post_title' => 'comment-test', 'post_date' => '2008-03-03' ) ); 
     50        $post_id = $this->factory->post->create( array( 'import_id' => 149, 'post_title' => 'comment-test', 'post_date' => '2008-03-03 00:00:00' ) ); 
    5151        $this->factory->comment->create_post_comments( $post_id, 15 ); 
    5252 
    53         $this->factory->post->create( array( 'post_date' => '2008-09-05' ) ); 
     53        $this->factory->post->create( array( 'post_date' => '2008-09-05 00:00:00' ) ); 
    5454         
    5555        $this->factory->post->create( array( 'import_id' => 123 ) ); 
Note: See TracChangeset for help on using the changeset viewer.