You appear to be a bot. Output may be restricted
Description
Usage
Tests_WP_Date_Query::test_validate_date_values_hour();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/date/query.php
Lines:
1 to 14 of 14
public function test_validate_date_values_hour() { // Valid values. $hours = range( 0, 23 ); foreach ( $hours as $hour ) { $this->assertTrue( $this->q->validate_date_values( array( 'hour' => $hour ) ) ); } // Invalid values. $hours = array( -1, 24, 25, 'string' ); foreach ( $hours as $hour ) { $this->assertFalse( $this->q->validate_date_values( array( 'hour' => $hour ) ) ); } }