Changeset 51462 for trunk/tests/phpunit/tests/query/dateQuery.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/dateQuery.php
r48939 r51462 932 932 $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); 933 933 934 $this->assert Contains( "MONTH( $wpdb->posts.post_date ) = 5", $this->q->request );935 $this->assert NotContains( "MONTH( $wpdb->posts.post_date ) = 9", $this->q->request );934 $this->assertStringContainsString( "MONTH( $wpdb->posts.post_date ) = 5", $this->q->request ); 935 $this->assertStringNotContainsString( "MONTH( $wpdb->posts.post_date ) = 9", $this->q->request ); 936 936 } 937 937 … … 954 954 $this->assertSame( array( $p2 ), wp_list_pluck( $posts, 'ID' ) ); 955 955 956 $this->assert Contains( "WEEK( $wpdb->posts.post_date, 1 ) = 43", $this->q->request );957 $this->assert NotContains( "WEEK( $wpdb->posts.post_date, 1 ) = 42", $this->q->request );956 $this->assertStringContainsString( "WEEK( $wpdb->posts.post_date, 1 ) = 43", $this->q->request ); 957 $this->assertStringNotContainsString( "WEEK( $wpdb->posts.post_date, 1 ) = 42", $this->q->request ); 958 958 } 959 959
Note: See TracChangeset
for help on using the changeset viewer.