You appear to be a bot. Output may be restricted
Description
Usage
Tests_WP_Date_Query::test_validate_date_values_should_process_array_value_for_day_when_values_are_invalid();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/date/query.php
Lines:
1 to 20 of 20
public function test_validate_date_values_should_process_array_value_for_day_when_values_are_invalid() { $p1 = self::factory()->post->create( array( 'post_date' => '2015-01-12 00:00:00' ) ); $p2 = self::factory()->post->create( array( 'post_date' => '2015-01-10 00:00:00' ) ); $q = new WP_Query( array( 'date_query' => array( array( 'compare' => 'BETWEEN', 'day' => array( 9, 32 ), ), ), 'fields' => 'ids', ) ); // MySQL ignores the invalid clause. $this->assertEquals( array( $p1, $p2 ), $q->posts ); }