Role/Capability: Add tests for the `exist` user capability.

See #38236


git-svn-id: https://develop.svn.wordpress.org/trunk@38861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2016-10-21 14:11:10 +00:00
parent 3808c8c21d
commit f27fb3e91f
1 changed files with 3 additions and 0 deletions

View File

@ -467,6 +467,9 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
$this->assertFalse( $user->has_cap( 'do_not_allow' ), "User with the {$role} role should not have the do_not_allow capability" );
$this->assertFalse( user_can( $user, 'do_not_allow' ), "User with the {$role} role should not have the do_not_allow capability" );
$this->assertTrue( $user->has_cap( 'exist' ), "User with the {$role} role should have the exist capability" );
$this->assertTrue( user_can( $user, 'exist' ), "User with the {$role} role should have the exist capability" );
}
// special case for the link manager