Changeset 38096
- Timestamp:
- 07/18/2016 10:38:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/capabilities.php
r37157 r38096 1184 1184 } 1185 1185 1186 public function testNonLoggedInUsersHaveNoCapabilities() { 1187 1188 $this->assertFalse( is_user_logged_in() ); 1189 1190 $caps = $this->getCapsAndRoles(); 1191 1192 foreach ( $caps as $cap => $roles ) { 1193 $this->assertFalse( current_user_can( $cap ), "Non-logged-in user should not have the {$cap} capability" ); 1194 } 1195 1196 } 1197 1186 1198 }
Note: See TracChangeset
for help on using the changeset viewer.