21use PHPUnit\Framework\Attributes\Test;
22use PHPUnit\Framework\Attributes\Small;
25use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
26use PHPUnit\Framework\TestCase;
34 use MockeryPHPUnitIntegration;
43 protected function setUp(): void
56 $privateAccessFile = 0700;
57 $privateAccessDir = 0700;
59 $publicAccessFile = 0744;
60 $publicAccessDir = 0755;
73 $filesystem = $this->subject->getInstance($config);
74 $this->assertInstanceOf(FilesystemFacade::class, $filesystem,
"Filesystem type must be " . FilesystemFacade::class);
83 $privateAccessFile = 0700;
84 $privateAccessDir = 0700;
86 $publicAccessFile = 0744;
87 $publicAccessDir = 0755;
89 $invalidLinkBehaviour = 9999;
101 $this->expectException(\InvalidArgumentException::class);
102 $this->expectExceptionMessage(
"The supplied value \"$invalidLinkBehaviour\" is not a valid LocalConfig link behaviour constant.");
104 $this->subject->getInstance($config);
113 $privateAccessFile = 0700;
114 $privateAccessDir = 0700;
116 $publicAccessFile = 0744;
117 $publicAccessDir = 0755;
118 $invalidLockMode = 9999;
130 $this->expectException(\InvalidArgumentException::class);
131 $this->expectExceptionMessage(
"The supplied value \"$invalidLockMode\" is not a valid file lock mode please check your local file storage configurations.");
133 $this->subject->getInstance($config);
The filesystem facade is used internally to satisfy the Filesystem interface because the implementati...
This class is used to configure the local filesystem adapter.
setUp()
Sets up the fixture, for example, open a network connection.
FlySystemLocalFilesystemFactory $subject
testCreationOfFilesystemWithInvalidLinkBehaviourWhichShouldFail()
testCreationOfFilesystemWithLinkSkipBehaviourWhichShouldSucceed()
testCreationOfFilesystemWithInvalidFileLockModeWhichShouldFail()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...