Ticket #31067: 31067.2.patch
File 31067.2.patch, 751 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/tests/date/query.php
857 857 */ 858 858 public function test_validate_date_values_hour() { 859 859 // Valid values. 860 $hours = range( 1, 23 );860 $hours = range( 0, 23 ); 861 861 foreach ( $hours as $hour ) { 862 862 $this->assertTrue( $this->q->validate_date_values( array( 'hour' => $hour ) ) ); 863 863 } 864 864 865 865 // Invalid values. 866 $hours = array( -1, 24, 25 , 'string who wants to be a int');866 $hours = array( -1, 24, 25 ); 867 867 foreach ( $hours as $hour ) { 868 868 $this->assertFalse( $this->q->validate_date_values( array( 'hour' => $hour ) ) ); 869 869 }