Make WordPress Core

Changeset 38861


Ignore:
Timestamp:
10/21/2016 02:11:10 PM (8 years ago)
Author:
johnbillion
Message:

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

See #38236

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/capabilities.php

    r38860 r38861  
    468468        $this->assertFalse( $user->has_cap( 'do_not_allow' ), "User with the {$role} role should not have the do_not_allow capability" );
    469469        $this->assertFalse( user_can( $user, 'do_not_allow' ), "User with the {$role} role should not have the do_not_allow capability" );
     470
     471        $this->assertTrue( $user->has_cap( 'exist' ), "User with the {$role} role should have the exist capability" );
     472        $this->assertTrue( user_can( $user, 'exist' ), "User with the {$role} role should have the exist capability" );
    470473    }
    471474
Note: See TracChangeset for help on using the changeset viewer.