mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
3808c8c21d
commit
f27fb3e91f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user