Changeset 51462 for trunk/tests/phpunit/tests/query/postStatus.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/postStatus.php
r51419 r51462 118 118 ); 119 119 120 $this->assert Contains( "post_status <> 'foo'", $q->request );120 $this->assertStringContainsString( "post_status <> 'foo'", $q->request ); 121 121 } 122 122 … … 130 130 ); 131 131 132 $this->assert NotContains( "post_status <> 'foo'", $q->request );132 $this->assertStringNotContainsString( "post_status <> 'foo'", $q->request ); 133 133 } 134 134 … … 242 242 243 243 foreach ( get_post_stati( array( 'public' => true ) ) as $status ) { 244 $this->assert Contains( "post_status = '$status'", $q->request );244 $this->assertStringContainsString( "post_status = '$status'", $q->request ); 245 245 } 246 246 } … … 255 255 ); 256 256 257 $this->assert NotContains( "post_status = 'foo", $q->request );257 $this->assertStringNotContainsString( "post_status = 'foo", $q->request ); 258 258 } 259 259 … … 274 274 ); 275 275 276 $this->assert Contains( "post_status = 'foo", $q->request );276 $this->assertStringContainsString( "post_status = 'foo", $q->request ); 277 277 } 278 278
Note: See TracChangeset
for help on using the changeset viewer.