Ticket #34277: 34277.patch
File 34277.patch, 758 bytes (added by , 9 years ago) |
---|
-
tests/phpunit/tests/date/query.php
975 975 * @ticket 31001 976 976 */ 977 977 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' ) ); 981 980 $q = new WP_Query( array( 982 981 'date_query' => array( 983 982 array(