aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/filebackend
Commit message (Collapse)AuthorAgeFilesLines
...
* [LockManager] Various fixes to lock managers.Aaron Schulz2013-03-121-35/+61
| | | | | | | | | | | | * Improved handling of corrupt values in cache for MemcLockManager. Also improved the use of Status warnings a bit. * Removed broken special-case handling for SH->EX lock escalation. Updated MysqLockManager to compensate. * Made FSLockManager only use one handle per file, which is more efficient and avoids errors when escalating locks (SH->EX). * Made lock unit tests have more useful output on failure. Change-Id: Ib304712fa2b6b3fd02bfc1b08b6f238c771960c2
* [LockManager] Added ScopedLock::release function.Aaron Schulz2013-03-051-0/+17
| | | | | | * Added more lock unit tests. Change-Id: Ic359307cf26cfb621ae8d2db867801735a375dde
* styleAntoine Musso2013-02-201-3/+3
| | | | | | | | | | | | | | | | | | tests/phpunit/includes/StringUtilsTest.php:42:3 - avoid function calls in a FOR loop test part tests/phpunit/includes/PathRouterTest.php:155 to 165 - fix space/tabs indenting - convert double quotes to single for consistency tests/phpunit/data/xmp/7.result.php - reindent to use tabs instead of spaces - removed trailing whitespaces tests/phpunit/includes/filebackend/FileBackendTest.php - spaces in indentation Change-Id: I9c15803f961fc88b798ada3dd6c2b292c1de2143
* Fix parenthesesSiebrand Mazeland2013-02-141-2/+2
| | | | Change-Id: I6e7d99796635ed8f4ec462ae8661069b8518e5c5
* pass codesniffer on tests/Antoine Musso2013-01-281-1/+1
| | | | | | | | | | | | | | | Fix almost all occurences of the following sniffs: Generic.CodeAnalysis.UselessOverridingMethod.Found Generic.Formatting.NoSpaceAfterCast.SpaceFound Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine Generic.PHP.LowerCaseConstant.Found PSR2.Classes.PropertyDeclaration.ScopeMissing PSR2.Files.EndFileNewline.TooMany PSR2.Methods.MethodDeclaration.StaticBeforeVisibility Change-Id: I96aacef5bafe5a2bca659744fba1380999cfc37d
* [FileBackend] Fixed bug where "false" could be included in getDirectoryList().Aaron Schulz2013-01-231-1/+11
| | | | Change-Id: Ib14192d4f5c5143b07af2191b62ea3919483445a
* [FileBackend] Added back ability to delete file HTTP headers.Aaron Schulz2012-11-211-1/+1
| | | | | | | | * This partially reverts b80bd6159bdf946c1d4fa1e143fea221937d848a. * Clarified 'headers' parameter documentation a bit. * Added the "describe" function wrappers that the other ops have. Change-Id: I7142fd4d973f5f3407d244a4cae793934083bc26
* [FileBackend] Added support for changing headers on existing objects.Jan Gerber2012-11-201-1/+70
| | | | | | | | | | * Added a 'describe' file operation type to doOperations()/doQuickOperations(). This can be used by scripts to fill in headers like X-Content-Duration for files that already exists. * Removed wrong comments about removing headers (they don't get removed with null). * Added some quick unit tests. Change-Id: I43c5907b59421beaa9487eefac0cdbf8bc6c6d85
* Unset DirectoryIterator in the FileBackendumherirrender2012-11-161-0/+4
| | | | | | | | | | | | | | This is necessory to close all handlers on the directory and than it is possible to rmdir the directory without a 'permission denied' on a windows machine. Corresponding unit test failure: 1) FileBackendTest::testRecursiveClean Dir mwstore://localtesting/unittest-cont1/e/a no longer exists (FSFileBackend). Failed asserting that true matches expected false. Change-Id: Ide58c6d0ec101bf0ddcd6b7414c51075fc28825b
* [FileBackend] Added getFileHttpUrl() function.Aaron Schulz2012-11-081-0/+44
| | | | | | | | * This can speed up certain video file operations for scripts that support specifying source files via URLs and support HTTP Range headers. * Updated unit tests. Change-Id: I60cb95c2e3dd9f7df1f740e9182be7c79af69d6e
* Moved FileBackend tests to /filebackend.Aaron Schulz2012-11-021-0/+1995
Change-Id: Ieb789ac1c9803f74bad3a4fef3a57587d6dd6260