Skip to content

Commit

Permalink
Update PermissionsTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Oct 22, 2024
1 parent a981688 commit fe93719
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/unit/file/PermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ public function testFromInt(): void
$this->assertSame([Permission::OWNER_READ, Permission::GROUP_READ, Permission::PUBLIC_READ], $permissions->getPermissions());
}

/**
*
*/
public function testGetPermissions(): void
{
$permissions = new Permissions;

$this->assertSame([Permission::NONE], $permissions->getPermissions());

//

$permissions = new Permissions(Permission::OWNER_FULL);

$this->assertSame([Permission::OWNER_READ, Permission::OWNER_WRITE, Permission::OWNER_EXECUTE], $permissions->getPermissions());
}

/**
*
*/
Expand Down

0 comments on commit fe93719

Please sign in to comment.