Skip to content

Commit

Permalink
Auto-cs fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanclevenger91 committed Sep 17, 2024
1 parent 7d5d1f7 commit ccf5d0d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/phpunit/tests/user/capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -996,14 +996,18 @@ public function test_add_role() {
*/
public function test_add_role_with_single_level_capabilities() {
$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.
$id = self::factory()->user->create( array( 'role' => $role_name ) );
$id = self::factory()->user->create( array( 'role' => $role_name ) );
$user = new WP_User( $id );

$this->assertTrue( $user->has_cap( 'level_1' ) );
Expand Down

0 comments on commit ccf5d0d

Please sign in to comment.