Changeset 35091 for trunk/tests/phpunit/tests/date/query.php
- Timestamp:
- 10/12/2015 11:39:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/query.php
r34989 r35091 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 ' ) );978 $p1 = $this->factory->post->create( array( 'post_date' => '2015-01-12 00:00:00' ) ); 979 $p2 = $this->factory->post->create( array( 'post_date' => '2013-01-12 00:00:00' ) ); 980 980 981 981 $q = new WP_Query( array( … … 996 996 */ 997 997 public function test_validate_date_values_should_process_array_value_for_day() { 998 $p1 = $this->factory->post->create( array( 'post_date' => '2015-01-12 ' ) );999 $p2 = $this->factory->post->create( array( 'post_date' => '2015-01-10 ' ) );998 $p1 = $this->factory->post->create( array( 'post_date' => '2015-01-12 00:00:00' ) ); 999 $p2 = $this->factory->post->create( array( 'post_date' => '2015-01-10 00:00:00' ) ); 1000 1000 1001 1001 $q = new WP_Query( array( … … 1017 1017 */ 1018 1018 public function test_validate_date_values_should_process_array_value_for_day_when_values_are_invalid() { 1019 $p1 = $this->factory->post->create( array( 'post_date' => '2015-01-12 ' ) );1020 $p2 = $this->factory->post->create( array( 'post_date' => '2015-01-10 ' ) );1019 $p1 = $this->factory->post->create( array( 'post_date' => '2015-01-12 00:00:00' ) ); 1020 $p2 = $this->factory->post->create( array( 'post_date' => '2015-01-10 00:00:00' ) ); 1021 1021 1022 1022 $q = new WP_Query( array(
Note: See TracChangeset
for help on using the changeset viewer.