Changeset 48937 for trunk/tests/phpunit/tests/query/dateQuery.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/dateQuery.php
r47122 r48937 97 97 ); 98 98 99 $this->assert Equals( array( $p1, $p2 ), wp_list_pluck( $posts, 'ID' ) );99 $this->assertSame( array( $p1, $p2 ), wp_list_pluck( $posts, 'ID' ) ); 100 100 } 101 101 … … 142 142 ); 143 143 144 $this->assert Equals( array( $p2 ), wp_list_pluck( $posts, 'ID' ) );144 $this->assertSame( array( $p2 ), wp_list_pluck( $posts, 'ID' ) ); 145 145 } 146 146 … … 160 160 ); 161 161 162 $this->assert Equals( array( $p3 ), wp_list_pluck( $posts, 'ID' ) );162 $this->assertSame( array( $p3 ), wp_list_pluck( $posts, 'ID' ) ); 163 163 } 164 164 … … 179 179 ); 180 180 181 $this->assert Equals( array( $p2, $p3 ), wp_list_pluck( $posts, 'ID' ) );181 $this->assertSame( array( $p2, $p3 ), wp_list_pluck( $posts, 'ID' ) ); 182 182 } 183 183 … … 208 208 ); 209 209 210 $this->assert Equals( array( $p2, $p3, $p4 ), wp_list_pluck( $posts, 'ID' ) );210 $this->assertSame( array( $p2, $p3, $p4 ), wp_list_pluck( $posts, 'ID' ) ); 211 211 } 212 212 … … 248 248 ); 249 249 250 $this->assert Equals( array( $p2 ), $before_posts );251 $this->assert Equals( array( $p1 ), $after_posts );250 $this->assertSame( array( $p2 ), $before_posts ); 251 $this->assertSame( array( $p1 ), $after_posts ); 252 252 } 253 253 … … 332 332 ); 333 333 334 $this->assert Equals( array( $p2 ), $before_posts );335 $this->assert Equals( array( $p1 ), $after_posts );334 $this->assertSame( array( $p2 ), $before_posts ); 335 $this->assertSame( array( $p1 ), $after_posts ); 336 336 } 337 337 … … 416 416 ); 417 417 418 $this->assert Equals( array( $p2 ), $before_posts );419 $this->assert Equals( array( $p1 ), $after_posts );418 $this->assertSame( array( $p2 ), $before_posts ); 419 $this->assertSame( array( $p1 ), $after_posts ); 420 420 } 421 421 … … 500 500 ); 501 501 502 $this->assert Equals( array( $p2 ), $before_posts );503 $this->assert Equals( array( $p1 ), $after_posts );502 $this->assertSame( array( $p2 ), $before_posts ); 503 $this->assertSame( array( $p1 ), $after_posts ); 504 504 } 505 505 … … 584 584 ); 585 585 586 $this->assert Equals( array( $p2 ), $before_posts );587 $this->assert Equals( array( $p1 ), $after_posts );586 $this->assertSame( array( $p2 ), $before_posts ); 587 $this->assertSame( array( $p1 ), $after_posts ); 588 588 } 589 589 … … 668 668 ); 669 669 670 $this->assert Equals( array( $p1, $p2 ), $before_posts );670 $this->assertSame( array( $p1, $p2 ), $before_posts ); 671 671 } 672 672 … … 684 684 ); 685 685 686 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );686 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 687 687 } 688 688 … … 700 700 ); 701 701 702 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );702 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 703 703 } 704 704 … … 716 716 ); 717 717 718 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );718 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 719 719 } 720 720 … … 733 733 ); 734 734 735 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );735 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 736 736 } 737 737 … … 750 750 ); 751 751 752 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );752 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 753 753 } 754 754 … … 770 770 ); 771 771 772 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );772 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 773 773 } 774 774 … … 787 787 ); 788 788 789 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );789 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 790 790 } 791 791 … … 807 807 ); 808 808 809 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );809 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 810 810 } 811 811 … … 824 824 ); 825 825 826 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );826 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 827 827 } 828 828 … … 841 841 ); 842 842 843 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );843 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 844 844 } 845 845 … … 890 890 ); 891 891 892 $this->assert Equals( array( $p1, $p3 ), wp_list_pluck( $posts, 'ID' ) );892 $this->assertSame( array( $p1, $p3 ), wp_list_pluck( $posts, 'ID' ) ); 893 893 } 894 894 … … 911 911 ); 912 912 913 $this->assert Equals( array( $p2, $p3, $p4 ), wp_list_pluck( $posts, 'ID' ) );913 $this->assertSame( array( $p2, $p3, $p4 ), wp_list_pluck( $posts, 'ID' ) ); 914 914 } 915 915 … … 930 930 ); 931 931 932 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );932 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 933 933 934 934 $this->assertContains( "MONTH( $wpdb->posts.post_date ) = 5", $this->q->request ); … … 952 952 ); 953 953 954 $this->assert Equals( array( $p2 ), wp_list_pluck( $posts, 'ID' ) );954 $this->assertSame( array( $p2 ), wp_list_pluck( $posts, 'ID' ) ); 955 955 956 956 $this->assertContains( "WEEK( $wpdb->posts.post_date, 1 ) = 43", $this->q->request ); … … 993 993 _unregister_taxonomy( 'foo' ); 994 994 995 $this->assert Equals( array( $p1 ), wp_list_pluck( $posts, 'ID' ) );995 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 996 996 } 997 997 … … 1024 1024 ); 1025 1025 1026 $this->assert Equals( array( $p2, $p3 ), wp_list_pluck( $posts, 'ID' ) );1026 $this->assertSame( array( $p2, $p3 ), wp_list_pluck( $posts, 'ID' ) ); 1027 1027 } 1028 1028
Note: See TracChangeset
for help on using the changeset viewer.