Changeset 30142 for trunk/tests/phpunit/tests/query/dateQuery.php
- Timestamp:
- 11/01/2014 03:23:15 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/dateQuery.php
r29993 r30142 629 629 array( 630 630 'dayofweek' => 3, 631 ), 632 ), 633 ) ); 634 635 $this->assertEquals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 636 } 637 638 /** 639 * @ticket 28063 640 */ 641 public function test_date_query_dayofweek_iso() { 642 $p1 = $this->factory->post->create( array( 'post_date' => '2014-10-31 10:42:29', ) ); 643 $p2 = $this->factory->post->create( array( 'post_date' => '2014-10-30 10:42:29', ) ); 644 645 $posts = $this->_get_query_result( array( 646 'date_query' => array( 647 array( 648 'dayofweek_iso' => 5, 631 649 ), 632 650 ),
Note: See TracChangeset
for help on using the changeset viewer.