Skip to content

Commit

Permalink
test: add private directory visibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkhuss committed Mar 8, 2024
1 parent 383e17d commit 6e5eb9d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Local/LocalFilesystemAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -820,4 +820,17 @@ public function get_checksum_with_specified_algo(): void

$this->assertSame('0d5f5c7f', $checksum);
}

/**
* @test
*/
public function test_private_directory_visibility(): void
{
$adapter = new LocalFilesystemAdapter(static::ROOT);
$adapter->createDirectory('private', new Config(['visibility' => 'private']));

$visibility = $adapter->visibility('private');

$this->assertEquals('private', $visibility->visibility());
}
}

0 comments on commit 6e5eb9d

Please sign in to comment.