‪TYPO3CMS  ‪main
TestingDriver.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
27 {
28  protected function ‪canonicalizeAndCheckFilePath(string $filePath): string
29  {
30  throw new \BadMethodCallException('Not implemented', 1691577284);
31  }
32 
33  protected function ‪canonicalizeAndCheckFileIdentifier(string $fileIdentifier): string
34  {
35  throw new \BadMethodCallException('Not implemented', 1691577288);
36  }
37 
38  protected function ‪canonicalizeAndCheckFolderIdentifier(string $folderIdentifier): string
39  {
40  throw new \BadMethodCallException('Not implemented', 1691577293);
41  }
42 
43  public function ‪processConfiguration(): void
44  {
45  // stub
46  }
47 
48  public function ‪initialize(): void
49  {
50  // stub
51  }
52 
54  {
55  throw new \BadMethodCallException('Not implemented', 1691577300);
56  }
57 
58  public function ‪sanitizeFileName(string $fileName, string $charset = ''): string
59  {
60  throw new \BadMethodCallException('Not implemented', 1691577304);
61  }
62 
63  public function ‪getRootLevelFolder(): string
64  {
65  throw new \BadMethodCallException('Not implemented', 1691577309);
66  }
67 
68  public function ‪getDefaultFolder(): string
69  {
70  throw new \BadMethodCallException('Not implemented', 1691577316);
71  }
72 
73  public function ‪getParentFolderIdentifierOfIdentifier(string $fileIdentifier): string
74  {
75  throw new \BadMethodCallException('Not implemented', 1691577324);
76  }
77 
78  public function ‪getPublicUrl(string ‪$identifier): ?string
79  {
80  throw new \BadMethodCallException('Not implemented', 1691577328);
81  }
82 
83  public function ‪createFolder(
84  string $newFolderName,
85  string $parentFolderIdentifier = '',
86  bool $recursive = false
87  ): string {
88  throw new \BadMethodCallException('Not implemented', 1691577334);
89  }
90 
91  public function ‪renameFolder(string $folderIdentifier, string $newName): array
92  {
93  throw new \BadMethodCallException('Not implemented', 1691577338);
94  }
95 
96  public function ‪deleteFolder(string $folderIdentifier, bool $deleteRecursively = false): bool
97  {
98  throw new \BadMethodCallException('Not implemented', 1691577342);
99  }
100 
101  public function ‪fileExists(string $fileIdentifier): bool
102  {
103  throw new \BadMethodCallException('Not implemented', 1691577347);
104  }
105 
106  public function ‪folderExists(string $folderIdentifier): bool
107  {
108  throw new \BadMethodCallException('Not implemented', 1691577350);
109  }
110 
111  public function ‪isFolderEmpty(string $folderIdentifier): bool
112  {
113  throw new \BadMethodCallException('Not implemented', 1691577354);
114  }
115 
116  public function ‪addFile(
117  string $localFilePath,
118  string $targetFolderIdentifier,
119  string $newFileName = '',
120  bool $removeOriginal = true
121  ): string {
122  throw new \BadMethodCallException('Not implemented', 1691577360);
123  }
124 
125  public function ‪createFile(string $fileName, string $parentFolderIdentifier): string
126  {
127  throw new \BadMethodCallException('Not implemented', 1691577364);
128  }
129 
130  public function ‪copyFileWithinStorage(
131  string $fileIdentifier,
132  string $targetFolderIdentifier,
133  string $fileName
134  ): string {
135  throw new \BadMethodCallException('Not implemented', 1691577369);
136  }
137 
138  public function ‪renameFile(string $fileIdentifier, string $newName): string
139  {
140  throw new \BadMethodCallException('Not implemented', 1691577375);
141  }
142 
143  public function ‪replaceFile(string $fileIdentifier, string $localFilePath): bool
144  {
145  throw new \BadMethodCallException('Not implemented', 1691577379);
146  }
147 
148  public function ‪deleteFile(string $fileIdentifier): bool
149  {
150  throw new \BadMethodCallException('Not implemented', 1691577384);
151  }
152 
153  public function ‪hash(string $fileIdentifier, string $hashAlgorithm): string
154  {
155  throw new \BadMethodCallException('Not implemented', 1691577388);
156  }
157 
158  public function ‪moveFileWithinStorage(
159  string $fileIdentifier,
160  string $targetFolderIdentifier,
161  string $newFileName
162  ): string {
163  throw new \BadMethodCallException('Not implemented', 1691577393);
164  }
165 
166  public function ‪moveFolderWithinStorage(
167  string $sourceFolderIdentifier,
168  string $targetFolderIdentifier,
169  string $newFolderName
170  ): array {
171  throw new \BadMethodCallException('Not implemented', 1691577398);
172  }
173 
174  public function ‪copyFolderWithinStorage(
175  string $sourceFolderIdentifier,
176  string $targetFolderIdentifier,
177  string $newFolderName
178  ): bool {
179  throw new \BadMethodCallException('Not implemented', 1691577402);
180  }
181 
182  public function ‪getFileContents(string $fileIdentifier): string
183  {
184  throw new \BadMethodCallException('Not implemented', 1691577406);
185  }
186 
187  public function ‪setFileContents(string $fileIdentifier, string $contents): int
188  {
189  throw new \BadMethodCallException('Not implemented', 1691577411);
190  }
191 
192  public function ‪fileExistsInFolder(string $fileName, string $folderIdentifier): bool
193  {
194  throw new \BadMethodCallException('Not implemented', 1691577414);
195  }
196 
197  public function ‪folderExistsInFolder(string $folderName, string $folderIdentifier): bool
198  {
199  throw new \BadMethodCallException('Not implemented', 1691577418);
200  }
201 
202  public function ‪getFileForLocalProcessing(string $fileIdentifier, bool $writable = true): string
203  {
204  throw new \BadMethodCallException('Not implemented', 1691577423);
205  }
206 
207  public function ‪getPermissions(string ‪$identifier): array
208  {
209  throw new \BadMethodCallException('Not implemented', 1691577427);
210  }
211 
212  public function ‪dumpFileContents(string ‪$identifier): void
213  {
214  // stub
215  }
216 
217  public function ‪isWithin(string $folderIdentifier, string ‪$identifier): bool
218  {
219  throw new \BadMethodCallException('Not implemented', 1691577435);
220  }
221 
222  public function ‪getFileInfoByIdentifier(string $fileIdentifier, array $propertiesToExtract = []): array
223  {
224  throw new \BadMethodCallException('Not implemented', 1691577440);
225  }
226 
227  public function ‪getFolderInfoByIdentifier(string $folderIdentifier): array
228  {
229  throw new \BadMethodCallException('Not implemented', 1691577444);
230  }
231 
232  public function ‪getFileInFolder(string $fileName, string $folderIdentifier): string
233  {
234  throw new \BadMethodCallException('Not implemented', 1691577449);
235  }
236 
237  public function ‪getFilesInFolder(
238  string $folderIdentifier,
239  int $start = 0,
240  int $numberOfItems = 0,
241  bool $recursive = false,
242  array $filenameFilterCallbacks = [],
243  string $sort = '',
244  bool $sortRev = false
245  ): array {
246  throw new \BadMethodCallException('Not implemented', 1691577453);
247  }
248 
249  public function ‪getFolderInFolder(string $folderName, string $folderIdentifier): string
250  {
251  throw new \BadMethodCallException('Not implemented', 1691577457);
252  }
253 
254  public function ‪getFoldersInFolder(
255  string $folderIdentifier,
256  int $start = 0,
257  int $numberOfItems = 0,
258  bool $recursive = false,
259  array $folderNameFilterCallbacks = [],
260  string $sort = '',
261  bool $sortRev = false
262  ): array {
263  throw new \BadMethodCallException('Not implemented', 1691577462);
264  }
265 
266  public function ‪countFilesInFolder(
267  string $folderIdentifier,
268  bool $recursive = false,
269  array $filenameFilterCallbacks = []
270  ): int {
271  throw new \BadMethodCallException('Not implemented', 1691577466);
272  }
273 
274  public function ‪countFoldersInFolder(
275  string $folderIdentifier,
276  bool $recursive = false,
277  array $folderNameFilterCallbacks = []
278  ): int {
279  throw new \BadMethodCallException('Not implemented', 1691577470);
280  }
281 }
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\fileExistsInFolder
‪fileExistsInFolder(string $fileName, string $folderIdentifier)
Definition: TestingDriver.php:192
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\fileExists
‪fileExists(string $fileIdentifier)
Definition: TestingDriver.php:101
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFolderInfoByIdentifier
‪getFolderInfoByIdentifier(string $folderIdentifier)
Definition: TestingDriver.php:227
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\createFolder
‪createFolder(string $newFolderName, string $parentFolderIdentifier='', bool $recursive=false)
Definition: TestingDriver.php:83
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\isFolderEmpty
‪isFolderEmpty(string $folderIdentifier)
Definition: TestingDriver.php:111
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFileInfoByIdentifier
‪getFileInfoByIdentifier(string $fileIdentifier, array $propertiesToExtract=[])
Definition: TestingDriver.php:222
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getDefaultFolder
‪getDefaultFolder()
Definition: TestingDriver.php:68
‪TYPO3\CMS\Core\Resource\Capabilities
Definition: Capabilities.php:23
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\canonicalizeAndCheckFileIdentifier
‪canonicalizeAndCheckFileIdentifier(string $fileIdentifier)
Definition: TestingDriver.php:33
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\folderExists
‪folderExists(string $folderIdentifier)
Definition: TestingDriver.php:106
‪TYPO3\CMS\Core\Resource\Driver\AbstractDriver\$capabilities
‪Capabilities $capabilities
Definition: AbstractDriver.php:35
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\sanitizeFileName
‪sanitizeFileName(string $fileName, string $charset='')
Definition: TestingDriver.php:58
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\processConfiguration
‪processConfiguration()
Definition: TestingDriver.php:43
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\moveFileWithinStorage
‪moveFileWithinStorage(string $fileIdentifier, string $targetFolderIdentifier, string $newFileName)
Definition: TestingDriver.php:158
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFilesInFolder
‪getFilesInFolder(string $folderIdentifier, int $start=0, int $numberOfItems=0, bool $recursive=false, array $filenameFilterCallbacks=[], string $sort='', bool $sortRev=false)
Definition: TestingDriver.php:237
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getPermissions
‪getPermissions(string $identifier)
Definition: TestingDriver.php:207
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\countFilesInFolder
‪countFilesInFolder(string $folderIdentifier, bool $recursive=false, array $filenameFilterCallbacks=[])
Definition: TestingDriver.php:266
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\initialize
‪initialize()
Definition: TestingDriver.php:48
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\mergeConfigurationCapabilities
‪mergeConfigurationCapabilities(Capabilities $capabilities)
Definition: TestingDriver.php:53
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\addFile
‪addFile(string $localFilePath, string $targetFolderIdentifier, string $newFileName='', bool $removeOriginal=true)
Definition: TestingDriver.php:116
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver
Definition: TestingDriver.php:27
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\deleteFolder
‪deleteFolder(string $folderIdentifier, bool $deleteRecursively=false)
Definition: TestingDriver.php:96
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\moveFolderWithinStorage
‪moveFolderWithinStorage(string $sourceFolderIdentifier, string $targetFolderIdentifier, string $newFolderName)
Definition: TestingDriver.php:166
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\renameFile
‪renameFile(string $fileIdentifier, string $newName)
Definition: TestingDriver.php:138
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\deleteFile
‪deleteFile(string $fileIdentifier)
Definition: TestingDriver.php:148
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\renameFolder
‪renameFolder(string $folderIdentifier, string $newName)
Definition: TestingDriver.php:91
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\copyFolderWithinStorage
‪copyFolderWithinStorage(string $sourceFolderIdentifier, string $targetFolderIdentifier, string $newFolderName)
Definition: TestingDriver.php:174
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\canonicalizeAndCheckFilePath
‪canonicalizeAndCheckFilePath(string $filePath)
Definition: TestingDriver.php:28
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getRootLevelFolder
‪getRootLevelFolder()
Definition: TestingDriver.php:63
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\copyFileWithinStorage
‪copyFileWithinStorage(string $fileIdentifier, string $targetFolderIdentifier, string $fileName)
Definition: TestingDriver.php:130
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\createFile
‪createFile(string $fileName, string $parentFolderIdentifier)
Definition: TestingDriver.php:125
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFileForLocalProcessing
‪getFileForLocalProcessing(string $fileIdentifier, bool $writable=true)
Definition: TestingDriver.php:202
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\canonicalizeAndCheckFolderIdentifier
‪canonicalizeAndCheckFolderIdentifier(string $folderIdentifier)
Definition: TestingDriver.php:38
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getParentFolderIdentifierOfIdentifier
‪getParentFolderIdentifierOfIdentifier(string $fileIdentifier)
Definition: TestingDriver.php:73
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\countFoldersInFolder
‪countFoldersInFolder(string $folderIdentifier, bool $recursive=false, array $folderNameFilterCallbacks=[])
Definition: TestingDriver.php:274
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\folderExistsInFolder
‪folderExistsInFolder(string $folderName, string $folderIdentifier)
Definition: TestingDriver.php:197
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFileInFolder
‪getFileInFolder(string $fileName, string $folderIdentifier)
Definition: TestingDriver.php:232
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getPublicUrl
‪getPublicUrl(string $identifier)
Definition: TestingDriver.php:78
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFoldersInFolder
‪getFoldersInFolder(string $folderIdentifier, int $start=0, int $numberOfItems=0, bool $recursive=false, array $folderNameFilterCallbacks=[], string $sort='', bool $sortRev=false)
Definition: TestingDriver.php:254
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\isWithin
‪isWithin(string $folderIdentifier, string $identifier)
Definition: TestingDriver.php:217
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures
Definition: TestingDriver.php:18
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\replaceFile
‪replaceFile(string $fileIdentifier, string $localFilePath)
Definition: TestingDriver.php:143
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\setFileContents
‪setFileContents(string $fileIdentifier, string $contents)
Definition: TestingDriver.php:187
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\hash
‪hash(string $fileIdentifier, string $hashAlgorithm)
Definition: TestingDriver.php:153
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFolderInFolder
‪getFolderInFolder(string $folderName, string $folderIdentifier)
Definition: TestingDriver.php:249
‪TYPO3\CMS\Webhooks\Message\$identifier
‪identifier readonly string $identifier
Definition: FileAddedMessage.php:37
‪TYPO3\CMS\Core\Resource\Driver\AbstractDriver
Definition: AbstractDriver.php:28
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\getFileContents
‪getFileContents(string $fileIdentifier)
Definition: TestingDriver.php:182
‪TYPO3\CMS\Core\Tests\Unit\Resource\Driver\Fixtures\TestingDriver\dumpFileContents
‪dumpFileContents(string $identifier)
Definition: TestingDriver.php:212