Changeset 30142 for trunk/tests/phpunit/tests/date/query.php
- Timestamp:
- 11/01/2014 03:23:15 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/query.php
r29933 r30142 926 926 927 927 /** 928 * @ticket 28063 929 * @expectedIncorrectUsage WP_Date_Query 930 */ 931 public function test_validate_date_values_day_of_week_iso() { 932 // Valid values. 933 $days_of_week = range( 1, 7 ); 934 foreach ( $days_of_week as $day_of_week ) { 935 $this->assertTrue( $this->q->validate_date_values( array( 'dayofweek_iso' => $day_of_week ) ) ); 936 } 937 938 // Invalid values. 939 $days_of_week = array( -1, 0, 8 ); 940 foreach ( $days_of_week as $day_of_week ) { 941 $this->assertFalse( $this->q->validate_date_values( array( 'dayofweek_iso' => $day_of_week ) ) ); 942 } 943 } 944 945 /** 928 946 * @ticket 25834 929 947 * @expectedIncorrectUsage WP_Date_Query
Note: See TracChangeset
for help on using the changeset viewer.