21 require_once(__DIR__ .
"/../AbstractTestBase.php");
50 protected function setUp(): void
53 $this->file_system_mock = $this->createMock(Filesystem::class);
60 for ($x = 0; $x < 100; $x++) {
61 $random_id =
$id_generator->getUniqueResourceIdentification();
64 $first_element = end($path_elements);
65 $last_path_element = end($path_elements);
66 foreach ($path_elements as $path_element) {
67 $characters = strlen($path_element);
68 $possible_combinations = self::COMBINATIONS ** $characters;
69 if ($path_element !== $last_path_element) {
70 $this->assertLessThanOrEqual($max, $possible_combinations);
71 $this->assertGreaterThan($min, $possible_combinations);
80 $this->
withImplementation($storage_handler, self::NESTING_256, self::NESTING_281474976710656);
86 $this->
withImplementation($storage_handler, self::NESTING_4096 - 1, self::NESTING_4096);
Class FileResourceHandler.
getIdentificationGenerator()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getContainerPathWithoutBase(ResourceIdentification $identification)
This is only the path of a ResourceIdentification inside the StorageLocation base path...
withImplementation(StorageHandler $h, int $min, int $max)
Class DirectoryNestingTest.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const NESTING_281474976710656
Class ResourceBuilderTest.
Class FileSystemStorageHandler.
ILIAS ResourceStorage DummyIDGenerator $id_generator