aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/filesystem.php
Commit message (Collapse)AuthorAgeFilesLines
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-490/+0
| | | | | | | | | | | | | | | | | | | | * Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
* Mark $usersSetup only if user was found in initMountPointsVincent Petry2016-04-221-0/+22
| | | | | | | | | | initMountPoints is marking a user as successfully initialized too early. If the user was not found an NoUserException was thrown, the second time initMountPoints is called would not rethrow the exception and happily continue. This fix makes sure that we consistently throw NoUserException when initMountPoints is called repeatedly with invalid users.
* Throw NoUserException when attempting to init mount point for null userVincent Petry2016-04-221-0/+22
| | | | | | | In some scenarios initMountPoints is called with an empty user, and also there is no user in the session. In such cases, it is unsafe to let the code move on with an empty user.
* Use TempManager instead of tmpFileMorris Jobke2015-12-181-1/+1
|
* Use TempManager instead of tmpFolderMorris Jobke2015-12-181-2/+2
|
* Removed deprecated function OC_User::deleteUserRoeland Jago Douma2015-12-171-4/+8
| | | | Replaced with proper OCP calls
* Removed deprecated private OC_User::createUserRoeland Jago Douma2015-12-171-4/+4
| | | | | All function calls are replaced with the recommended (which was already the body of the function).
* last change of OC_Config to the proper interface in tests/Morris Jobke2015-12-031-3/+4
|
* Reduce OC_Config usage in tests/Morris Jobke2015-12-031-5/+5
|
* Apply DB group annotation ...Thomas Müller2015-11-301-0/+7
|
* adjust filesystem tests to objectstoreJörn Friedrich Dreyer2015-10-091-3/+12
|
* Move dummy backend to Tests namespaceLukas Reschke2015-09-221-2/+2
|
* phpdoc, strict and type hintsRobin Appelman2015-06-021-0/+7
|
* call mount providers that are registered after the filesystem is setupRobin Appelman2015-06-021-0/+35
|
* fix cherrypickingJörn Friedrich Dreyer2015-04-101-1/+10
|
* fix filesystem and encryption testsJörn Friedrich Dreyer2015-04-101-7/+4
| | | | | | Conflicts: apps/files_encryption/lib/util.php apps/files_encryption/tests/hooks.php
* Replace originalStorage in tests with a proper teardownVincent Petry2015-04-081-10/+2
| | | | | | | | | | The purpose of $originalStorage in unit tests was to remount the old root. However that storage itself is already wrapped by storage wrapper, so remounting it would rewrap the storage several times. This fix makes use of "loginAsUser()" and "logout()" from the TestCase class to properly initialize and cleanup the FS as expected.
* Normalize before processingLukas Reschke2015-02-061-0/+22
|
* Simplify isValidPath and add unit testsLukas Reschke2015-01-101-0/+33
| | | | | | The check for invalid paths is actually over-complicated and performed twice resulting in a performance penalty. Additionally, I decided to add unit-tests to that function. Part of https://github.com/owncloud/core/issues/13221
* Replace uniqid calls with $this->getUniqueID so tests pass again on windowsJoas Schilling2014-12-031-6/+6
|
* Use base class to reset the file mapperJoas Schilling2014-11-191-0/+2
|
* Add tests for absolute paths on windowsJoas Schilling2014-11-171-2/+32
|
* Refactor tests to use a dataProvider methodJoas Schilling2014-11-171-62/+73
|
* Correctly restore previous root mount point after testingJoas Schilling2014-11-171-7/+14
|
* Can't use assertInstanceOf on wrapped storage; use ↵ringmaster2014-06-041-5/+5
| | | | assertTrue(instanceOfStorage() instead.
* Added unit tests for external cache folderVincent Petry2014-03-241-0/+51
|
* get rid of failing test that don't cause additional downloadsRobin Appelman2013-12-061-24/+24
|
* Added missing test with leading backslashVincent Petry2013-11-141-0/+2
|
* Fixed normalizePath() to strip out single dot dirsVincent Petry2013-11-141-1/+54
| | | | Now removing "/./" and trailing "/." from the paths when normalizing.
* Now using HomeStorage for legacy home storage idsVincent Petry2013-11-121-0/+64
| | | | | Legacy home storage ids with the format "local://path/to/datadir/user1" are now also wrapped by the HomeStorage.
* changed tests for using new normalizerFlorin Peter2013-05-241-1/+1
|
* Update tests and apps to the new \OC\Files\Filesystem::init signatureRobin Appelman2013-02-111-1/+1
|
* uncomment failing calls to \OC\Files\Filesystem::file_put_contentsThomas Mueller2013-02-051-3/+3
|
* change behaviour of Filesystem::getMountPoint when a mountpoint is passed as ↵Robin Appelman2012-11-241-1/+1
| | | | path without trailing slash
* move filesystem test caseRobin Appelman2012-10-261-0/+110