Changeset 40563
- Timestamp:
- 05/01/2017 04:18:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/capabilities.php
r40543 r40563 1565 1565 /** 1566 1566 * @ticket 16956 1567 * @expectedIncorrectUsage map_meta_cap 1567 1568 */ 1568 1569 function test_require_edit_others_posts_if_post_type_doesnt_exist() { … … 1574 1575 $editor_id = self::$users['editor']->ID; 1575 1576 1576 $this->setExpectedIncorrectUsage( 'map_meta_cap' );1577 1577 foreach ( array( 'delete_post', 'edit_post', 'read_post', 'publish_post' ) as $cap ) { 1578 1578 wp_set_current_user( $subscriber_id ); … … 1641 1641 $this->assertFalse( current_user_can( $cap ), "Non-logged-in user should not have the {$cap} capability" ); 1642 1642 } 1643 1644 // Special cases for link manager and unfiltered uploads: 1645 $this->assertFalse( current_user_can( 'manage_links' ), "Non-logged-in user should not have the manage_links capability" ); 1646 $this->assertFalse( current_user_can( 'unfiltered_upload' ), "Non-logged-in user should not have the unfiltered_upload capability" ); 1643 1647 1644 1648 $this->assertFalse( current_user_can( 'start_a_fire' ), "Non-logged-in user should not have a custom capability" );
Note: See TracChangeset
for help on using the changeset viewer.