WordPress.org

Make WordPress Core

Ticket #34277: 34277.patch

File 34277.patch, 758 bytes (added by pbearne, 4 years ago)

set dates for factory to full format

  • tests/phpunit/tests/date/query.php

     
    975975         * @ticket 31001
    976976         */
    977977        public function test_validate_date_values_should_process_array_value_for_year() {
    978                 $p1 = $this->factory->post->create( array( 'post_date' => '2015-01-12' ) );
    979                 $p2 = $this->factory->post->create( array( 'post_date' => '2013-01-12' ) );
    980 
     978                $p1 = $this->factory->post->create( array( 'post_date' => '2015-12-01 00:00:00' ) );
     979                $p2 = $this->factory->post->create( array( 'post_date' => '2013-12-01 00:00:00' ) );
    981980                $q = new WP_Query( array(
    982981                        'date_query' => array(
    983982                                array(