Changeset 57239 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 01/03/2024 09:57:32 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r56421 r57239 330 330 stick_post( $post->ID ); 331 331 332 // Sanitycheck.332 // Confidence check. 333 333 $this->assertTrue( is_sticky( $post->ID ) ); 334 334 335 335 wp_set_current_user( self::$grammarian_id ); 336 336 337 // Sanitycheck.337 // Confidence check. 338 338 $this->assertFalse( current_user_can( 'publish_posts' ) ); 339 339 $this->assertTrue( current_user_can( 'edit_others_posts' ) ); … … 368 368 stick_post( $post->ID ); 369 369 370 // Sanitycheck.370 // Confidence check. 371 371 $this->assertTrue( is_sticky( $post->ID ) ); 372 372 373 373 wp_set_current_user( self::$grammarian_id ); 374 374 375 // Sanitycheck.375 // Confidence check. 376 376 $this->assertFalse( current_user_can( 'publish_posts' ) ); 377 377 $this->assertTrue( current_user_can( 'edit_others_posts' ) );
Note: See TracChangeset
for help on using the changeset viewer.