Class PathGeneratorTest.
More...
◆ testPathGeneratorV1()
ILIAS\ResourceStorage\Revision\PathGeneratorTest::testPathGeneratorV1 |
( |
| ) |
|
Definition at line 45 of file PathGeneratorTest.php.
References $path.
47 $identification_generator =
new UniqueIDIdentificationGenerator();
48 $identification = $identification_generator->getUniqueResourceIdentification();
50 $path_generator =
new UUIDBasedPathGenerator();
51 $path = $path_generator->getPathFor($identification);
52 $this->assertGreaterThanOrEqual(strlen($identification->serialize()), strlen(
$path));
53 foreach ($this->prohibited as $value) {
54 $this->assertFalse(strpos(
$path, (
string) $value));
57 $new_identification = $path_generator->getIdentificationFor(
$path);
58 $this->assertEquals($identification->serialize(), $new_identification->serialize());
◆ testPathGeneratorV2()
ILIAS\ResourceStorage\Revision\PathGeneratorTest::testPathGeneratorV2 |
( |
| ) |
|
Definition at line 61 of file PathGeneratorTest.php.
References $path.
63 $identification_generator =
new UniqueIDIdentificationGenerator();
64 $identification = $identification_generator->getUniqueResourceIdentification();
66 $path_generator =
new MaxNestingPathGenerator();
67 $path = $path_generator->getPathFor($identification);
69 foreach ($this->prohibited as $value) {
70 $this->assertFalse(strpos(
$path, (
string) $value));
73 $new_identification = $path_generator->getIdentificationFor(
$path);
74 $this->assertEquals($identification->serialize(), $new_identification->serialize());
◆ $prohibited
array ILIAS\ResourceStorage\Revision\PathGeneratorTest::$prohibited |
|
protected |
The documentation for this class was generated from the following file: