21use PHPUnit\Framework\MockObject\MockObject;
23require_once(__DIR__ .
"/../AbstractTestBase.php");
47 protected function setUp(): void
50 $this->file_system_mock = $this->createMock(Filesystem::class);
57 for ($x = 0; $x < 100; $x++) {
61 $first_element = end($path_elements);
62 $last_path_element = end($path_elements);
63 foreach ($path_elements as $path_element) {
64 $characters = strlen($path_element);
65 $possible_combinations = self::COMBINATIONS ** $characters;
66 if ($path_element !== $last_path_element) {
67 $this->assertLessThanOrEqual($max, $possible_combinations);
68 $this->assertGreaterThan($min, $possible_combinations);
77 $this->
withImplementation($storage_handler, self::NESTING_256, self::NESTING_281474976710656);
83 $this->
withImplementation($storage_handler, self::NESTING_4096 - 1, self::NESTING_4096);
Class ResourceBuilderTest.
DummyIDGenerator $id_generator
getUniqueResourceIdentification()
Class DirectoryNestingTest.
const int NESTING_281474976710656
withImplementation(StorageHandler $h, int $min, int $max)
MockObject $file_system_mock
Class FileSystemStorageHandler.
The filesystem interface provides the public interface for the Filesystem service API consumer.
Class FileResourceHandler.
getIdentificationGenerator()
getContainerPathWithoutBase(ResourceIdentification $identification)
This is only the path of a ResourceIdentification inside the StorageLocation base path.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...