Changeset 51462 for trunk/tests/phpunit/tests/query/results.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r51331 r51462 1050 1050 ); 1051 1051 $this->assertTrue( $this->q->have_posts() ); 1052 $this->assert Contains(1052 $this->assertStringContainsString( 1053 1053 "(({$wpdb->posts}.post_status = 'publish') OR ({$wpdb->posts}.post_author = 0 AND ({$wpdb->posts}.post_status = 'private')))", 1054 1054 $this->q->request 1055 1055 ); 1056 $this->assert NotContains( "({$wpdb->posts}.post_status = 'publish') AND", $this->q->request );1056 $this->assertStringNotContainsString( "({$wpdb->posts}.post_status = 'publish') AND", $this->q->request ); 1057 1057 } 1058 1058 … … 1203 1203 ); 1204 1204 1205 $this->assert Contains( 'contributing-to-the-wordpress-codex/getting-started', get_permalink( $post_2 ) );1205 $this->assertStringContainsString( 'contributing-to-the-wordpress-codex/getting-started', get_permalink( $post_2 ) ); 1206 1206 1207 1207 $result = $this->q->query(
Note: See TracChangeset
for help on using the changeset viewer.