summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* adjust tests accordinglyArthur Schiwon2014-04-153-3/+3
|
* add requirements to routingBernhard Posselt2014-04-101-4/+29
| | | | | Conflicts: tests/lib/appframework/routing/RoutingTest.php
* Still return quota value when free space is unknownVincent Petry2014-03-211-0/+18
| | | | | | | | Fixed the quota storage wrapper to correctly return the quota value when the free space is not known (which usually happens when the disk_free_space function is disabled) Backport of 66bc0f0 from master
* Return unencrypted_size of folder when queriedVincent Petry2014-03-211-0/+16
| | | | | | This fixes the "used space" to be based on the unencrypted size, not encrypted size, to be consistent with how quota/space is handled when encryption is enabled
* Added .ocdata file to check for data folder validityVincent Petry2014-03-201-0/+108
| | | | | | | | | | In environments where the data folder is mount from another partition, it is important to check that the data folder we see is actually the real one. If the mount failed for some reasons, this fix will make ownCloud temporarily unavailable instead of causing unpredictable behavior. Backport of 3c46dcd from master
* Added unit tests for serverHost and other related functionsVincent Petry2014-03-051-0/+137
|
* fix sharing unit testsBjoern Schiessle2014-02-212-7/+7
|
* add unit test for \OC\URLGenerator::getAbsoluteURL to verify #6935Bjoern Schiessle2014-02-211-0/+34
|
* intendationArthur Schiwon2014-02-101-5/+5
|
* Inject loggerArthur Schiwon2014-02-101-0/+7
|
* test for share dialoge sorterArthur Schiwon2014-02-101-0/+40
|
* add test for password remove methodBjoern Schiessle2014-02-041-0/+62
|
* fixing comment + adding unit test for checkPasswordProtectedShareThomas Müller2014-01-211-0/+42
|
* Fixed quota wrapper to not wrap failed fopen streamsVincent Petry2014-01-201-0/+19
| | | | | | | | | | | | When calling fopen() on some storage types, these return false instead of throwing an exception. This fix makes sure that in case the stream wasn't opened (for example when a file doesn't exist any more) the stream isn't wrapped. Also added 'rb' as another case that doesn't need to be wrapped. Fixes #6832
* Fix array access syntax for older PHPVincent Petry2014-01-171-2/+3
| | | | There was a syntax error when running tests in PHP 5.3.10.
* updated the unit test for OCP\Share::unshareAll() to verify that shares by ↵ben-denham2014-01-161-4/+54
| | | | all users are removed for an item.
* extended test to also check the status messagesBjoern Schiessle2014-01-151-11/+24
|
* Use storage_mtime when determining if we can reuse cached data while scanningRobin Appelman2014-01-153-2/+19
| | | | | | | | Backport to stable6 of the following commits, in order: - 203d5d0 - 4113042 - 7e4c80f - 16b898d
* Fix calculated folder size to use unencrypted sizeVincent Petry2014-01-141-0/+45
| | | | | | | | The encrypted size was used when calculating folder sizes. This fix now also sums up the unencrypted size and shows that one when available. Backport of 4faba49 to stable6
* Merge pull request #6612 from owncloud/user-no-change-displayname-stableicewind19912014-01-141-1/+4
|\ | | | | Backport: Re-add the config options to remove the ability for users to change their displayname
| * Pass config object in testGetHomeNotSupportedRobin Appelman2014-01-021-1/+4
| |
* | Prevent deleting storage rootVincent Petry2014-01-101-0/+42
| | | | | | | | | | | | | | | | | | | | Storage mount points are not deletable, so make sure that the unlink operation and its hooks aren't run in such cases. Note that some storages might recursively delete their contents when calling unlink on their root. This fix prevents that as well. Backport of f642ad3 to stable6
* | add tests for user countingArthur Schiwon2014-01-091-0/+72
| |
* | Now also preventing to override "files" dir size with -1Vincent Petry2014-01-081-6/+12
| | | | | | | | | | | | Fixes #6526 Backport of 5be4af9 to stable6
* | Added isUserAgent() method to requestVincent Petry2014-01-071-0/+50
| | | | | | | | | | | | - added isUserAgent() method to OC_Request which makes it possible to test it - OC_Response::setContentDisposition now uses OC_Request::isUserAgent()
* | DB: Support DECIMAL(precision,scale) syntax in XMLOliver Gasser2014-01-073-1/+38
|/ | | | | | | | | | Add support for specifying the precision and scale of a decimal data type to the XML description language. Added new unit tests and adapted existing ones. See owncloud/core#6475 Backported from owncloud/core#6476
* Merge pull request #6308 from owncloud/fix_webdav_session_login_user_comparisonblizzz2013-12-131-2/+13
|\ | | | | Fix webdav session login user comparison
| * adjust testArthur Schiwon2013-12-131-2/+13
| |
* | remove unneeded ; in commentRobin Appelman2013-12-131-1/+1
| |
* | Add test for having utf8 filenames in the cacheRobin Appelman2013-12-131-1/+31
|/
* add test case for removing background jobs that are throwing exceptionsRobin Appelman2013-12-062-3/+59
|
* Dont use exceptions for the backgroundjob test casesRobin Appelman2013-12-062-35/+46
|
* get rid of failing test that don't cause additional downloadsRobin Appelman2013-12-062-25/+25
|
* extend test case for etag preservationRobin Appelman2013-12-061-2/+2
|
* reuse etags when doing a background scanRobin Appelman2013-12-061-0/+79
|
* Added unit test for the test() methodVincent Petry2013-12-041-0/+7
| | | | This is to make sure that method isn't broken
* Merge pull request #6052 from owncloud/datetime-doctrineThomas Müller2013-12-011-38/+0
|\ | | | | Get rid of date strings for DB. Completely use Doctrine and DateTime.
| * Timestamp test is no longer necessary as we rely on Doctrine and DateTime.Andreas Fischer2013-11-261-38/+0
| |
* | Fixed FTP and SMB to use rmdir() when deleting foldersVincent Petry2013-11-291-1/+13
| | | | | | | | | | | | | | | | | | | | | | Some storages need to use different calls for deleting files or folders, usually unlink() and rmdir(). Fixes #4532 (SMB dir deletion) Fixes #5941 (FTP dir deletion) Note that the extra is_dir() should be fast because it's read from the stat cache.
* | Redetect mime type whenever extension is renamedVincent Petry2013-11-271-0/+8
| |
* | Merge pull request #6058 from owncloud/ldap2avatarblizzz2013-11-262-0/+96
|\ \ | | | | | | Set Avatar for LDAP users automatically (if a picture is available)
| * | Enable user backends to provide avatar imagesArthur Schiwon2013-11-222-0/+96
| | |
* | | Merge pull request #6060 from owncloud/fix-6050-oc6Björn Schießle2013-11-261-3/+8
|\ \ \ | | | | | | | | fixing getRawPathInfo() once more
| * | | fixes #6050Thomas Müller2013-11-261-3/+8
| | |/ | |/|
* | | Merge pull request #6008 from owncloud/extstorage-smb-webdav-renamefixVincent Petry2013-11-261-1/+9
|\ \ \ | | | | | | | | Fixed SMB rename function to overwrite target file
| * | | Improved unit test for "overwrite on move"Vincent Petry2013-11-251-3/+5
| | | | | | | | | | | | | | | | Now using a different content to make sure the file was overwritten.
| * | | Added unit test for "overwrite file on rename/move"Vincent Petry2013-11-251-0/+6
| | | | | | | | | | | | | | | | | | | | Also fixed "rename" unit test that was ready the result out of the wrong file.
* | | | Updated unit tests for SMBVincent Petry2013-11-261-1/+2
| |/ / |/| | | | | | | | | | | - coverage for touch return value - fixed directory provider to exclude unsupported cases
* | | in case uri and script name don't match we better throw an exceptionThomas Müller2013-11-251-0/+22
| | |
* | | handle duplicate slashes in case of reverse proxy configurationThomas Müller2013-11-251-0/+20
|/ /