Changeset 59116
- Timestamp:
- 09/30/2024 01:29:32 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/wpBlock.php
r59115 r59116 441 441 442 442 $this->assertSame( 443 $query,444 443 array( 445 444 'post_type' => 'page', … … 460 459 ), 461 460 'post_parent__in' => array( 1, 2 ), 462 ) 461 ), 462 $query 463 463 ); 464 464 } … … 604 604 605 605 $this->assertSame( 606 $query,607 606 array( 608 607 'post_type' => 'post', … … 611 610 'post__not_in' => array(), 612 611 'tax_query' => array(), 613 ) 612 ), 613 $query 614 614 ); 615 615 } … … 636 636 637 637 $this->assertSame( 638 $query,639 638 array( 640 639 'post_type' => 'post', … … 645 644 'offset' => 0, 646 645 'posts_per_page' => 2, 647 ) 646 ), 647 $query 648 648 ); 649 649 } … … 669 669 $query = build_query_vars_from_query_block( $block, 3 ); 670 670 $this->assertSame( 671 $query,672 671 array( 673 672 'post_type' => 'post', … … 678 677 'offset' => 10, 679 678 'posts_per_page' => 5, 680 ) 679 ), 680 $query 681 681 ); 682 682 } … … 702 702 $query = build_query_vars_from_query_block( $block, 3 ); 703 703 $this->assertSame( 704 $query,705 704 array( 706 705 'post_type' => 'post', … … 711 710 'offset' => 12, 712 711 'posts_per_page' => 5, 713 ) 712 ), 713 $query 714 714 ); 715 715 } … … 746 746 $query = build_query_vars_from_query_block( $block, 1 ); 747 747 $this->assertSame( 748 $query,749 748 array( 750 749 'post_type' => 'book', … … 753 752 'post__not_in' => array(), 754 753 'tax_query' => array(), 755 ) 754 ), 755 $query 756 756 ); 757 757 }
Note: See TracChangeset
for help on using the changeset viewer.