Skip to content
Prev Previous commit
Next Next commit
cs cleanup
  • Loading branch information
ethanclevenger91 committed Sep 17, 2024
commit 83a353895f370d743f341da8be78ee626c516455
10 changes: 5 additions & 5 deletions tests/phpunit/tests/user/capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,13 +992,14 @@ public function test_add_role() {
}

/**
* Test add_role with implied capabilities grant
* successfully grants capabilities.
* Test add_role with implied capabilities grant successfully grants capabilities.
*/
public function test_add_role_with_single_level_capabilities() {
global $wp_roles;
$role_name = 'janitor';
add_role( $role_name, 'Janitor', array( 'level_1', 'sweep_floors' => false ) );
add_role( $role_name, 'Janitor', array(
'level_1',
'sweep_floors' => false
) );
$this->flush_roles();

// Assign a user to that role.
Expand All @@ -1007,7 +1008,6 @@ public function test_add_role_with_single_level_capabilities() {

$this->assertTrue( $user->has_cap( 'level_1' ) );
$this->assertFalse( $user->has_cap( 'sweep_floors' ) );

}

/**
Expand Down