37 private \ILIAS\Filesystem\Provider\FlySystem\FlySystemLocalFilesystemFactory
$subject;
44 protected function setUp(): void
59 $privateAccessFile = 0700;
60 $privateAccessDir = 0700;
62 $publicAccessFile = 0744;
63 $publicAccessDir = 0755;
76 $filesystem = $this->subject->getInstance(
$config);
77 $this->assertInstanceOf(FilesystemFacade::class, $filesystem,
"Filesystem type must be " . FilesystemFacade::class);
88 $privateAccessFile = 0700;
89 $privateAccessDir = 0700;
91 $publicAccessFile = 0744;
92 $publicAccessDir = 0755;
94 $invalidLinkBehaviour = 9999;
103 $invalidLinkBehaviour
106 $this->expectException(\InvalidArgumentException::class);
107 $this->expectExceptionMessage(
"The supplied value \"$invalidLinkBehaviour\" is not a valid LocalConfig link behaviour constant.");
109 $this->subject->getInstance(
$config);
120 $privateAccessFile = 0700;
121 $privateAccessDir = 0700;
123 $publicAccessFile = 0744;
124 $publicAccessDir = 0755;
125 $invalidLockMode = 9999;
137 $this->expectException(\InvalidArgumentException::class);
138 $this->expectExceptionMessage(
"The supplied value \"$invalidLockMode\" is not a valid file lock mode please check your local file storage configurations.");
140 $this->subject->getInstance(
$config);
testCreationOfFilesystemWithLinkSkipBehaviourWhichShouldSucceed()
testCreationOfFilesystemWithInvalidLinkBehaviourWhichShouldFail()
testCreationOfFilesystemWithInvalidFileLockModeWhichShouldFail()
setUp()
Sets up the fixture, for example, open a network connection.
Class FlySystemLocalFilesystemFactoryTest.
ILIAS Filesystem Provider FlySystem FlySystemLocalFilesystemFactory $subject
Class FlySystemLocalFilesystemFactory.
const SKIP_LINKS
Skip encountered links.