Changeset 38398 for trunk/tests/phpunit/tests/user/capabilities.php
- Timestamp:
- 08/27/2016 08:35:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/capabilities.php
r38096 r38398 19 19 'subscriber' => $factory->user->create_and_get( array( 'role' => 'subscriber' ) ), 20 20 ); 21 }22 23 public static function wpTearDownAfterClass() {24 foreach ( self::$users as $role => $user ) {25 self::delete_user( $user->ID );26 }27 21 } 28 22 … … 1192 1186 foreach ( $caps as $cap => $roles ) { 1193 1187 $this->assertFalse( current_user_can( $cap ), "Non-logged-in user should not have the {$cap} capability" ); 1194 } 1188 } 1195 1189 1196 1190 }
Note: See TracChangeset
for help on using the changeset viewer.