nextcloud/tests/lib
Vincent Petry 538e466c30 Keep shared locks in post hooks
Instead of unlocking after the file operation, change exclusive locks
back to shared locks during post hooks, and unlock after that.

Also added unit tests to test locking in pre-hooks, during operation and
post-hooks.
2015-06-25 16:33:02 +02:00
..
app add positive tests for operator in code checker 2015-05-05 13:09:12 +02:00
appframework AppFramework annotation whitespace unit test 2015-06-21 20:26:57 +01:00
archive Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
backgroundjob Add async command system to handle asynchronous operations 2015-02-25 15:08:40 +01:00
cache fix unit test 2015-06-05 15:30:20 +02:00
command Allow configuring background job mode from the console 2015-03-02 20:51:40 +01:00
connector/sabre Make an assertion in risky test testGetNodeForPathRoot 2015-06-22 16:49:04 +02:00
contacts Make class compatible 2014-12-09 12:25:22 +01:00
db Add unit test for migrator with different prefix 2015-05-19 10:43:14 +02:00
encryption Add a test for the fallback to the part file keys 2015-06-08 16:35:37 +02:00
files Keep shared locks in post hooks 2015-06-25 16:33:02 +02:00
group Sort user groups by group name and hide the user count 2015-05-18 12:55:19 +02:00
hooks more type hints 2015-06-02 14:07:55 +02:00
http/client Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
lock add method to atomically change between shared and exclusive lock 2015-06-01 13:24:02 +02:00
mail Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
memcache Merge pull request #16832 from owncloud/memcache-fail 2015-06-16 11:00:18 +02:00
ocs Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
preview Fix max preview, some resizing and caching issues and force preview providers to resize their previews properly 2015-06-06 16:25:04 +02:00
public Test overriding channel 2015-05-15 22:37:14 +03:00
repair Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
security Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
session Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
share Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
template Add tests for correct path 2015-04-20 12:31:35 +02:00
user introduce names for user backends - IUserBackend 2014-12-19 10:17:17 +01:00
activitymanager.php Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
allconfig.php Workaround to fix the too early init dilemma 2014-12-08 22:33:36 +01:00
api.php Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
app.php Adjust tests and check whether clear() is called 2015-04-01 17:19:44 +02:00
appconfig.php Use insertIfNotExists to avoid problems with parallel calls 2015-05-11 12:38:33 +02:00
archive.php change tests back to check for logo-wide, make them pass again 2015-05-28 23:39:55 +02:00
autoloader.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
avatar.php Filter potential dangerous filenames for avatars 2015-04-28 16:57:23 +02:00
cache.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
config.php Add a method to set/unset multiple config values in one call 2015-01-23 11:00:53 +01:00
contactsmanager.php Mock interface 2014-12-08 13:18:00 +01:00
datetimeformatter.php Use a fixed timestamp so we dont switch days/years with the getTimestampAgo 2014-12-11 13:22:05 +01:00
db.php Use data provider instead of hand-crafted for loops 2015-04-18 15:19:33 +02:00
dbschema.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
errorHandler.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
group.php Do not use uniqid in Group and User tests as it is not unique on windows 2014-11-06 17:36:35 +01:00
helper.php Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
helperstorage.php reduce OC_Preferences, OC_Config and \OCP\Config usage 2014-12-08 22:42:37 +01:00
hookhelper.php Fire prehooks when uploading directly to storage 2015-05-13 17:47:04 +02:00
httphelper.php Add connection timeout to default POST options 2015-05-26 11:22:50 +02:00
image.php Fix max preview, some resizing and caching issues and force preview providers to resize their previews properly 2015-06-06 16:25:04 +02:00
installer.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
l10n.php Merge pull request #14399 from owncloud/ignore-empty-plurals 2015-03-26 20:15:33 +01:00
largefilehelper.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
largefilehelpergetfilesize.php Check if open_basedir is set 2014-12-11 00:09:55 +01:00
logger.php Conditional logging 2015-05-08 15:58:33 +02:00
naturalsort.php Add PHPunit test for DefaultCollator 2015-02-24 23:51:08 +01:00
navigationmanagertest.php Add tests for the navigation manager (closure) behaviour 2015-03-16 16:46:17 +01:00
ocsclienttest.php Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
preview.php Remove unneeded returns from private cropping methods 2015-06-19 15:07:49 +02:00
repair.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
server.php Adjust NullCache tests 2015-06-15 19:17:50 +02:00
setup.php Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
streamwrappers.php Replace originalStorage in tests with a proper teardown 2015-04-08 12:45:38 +02:00
tags.php remove IDb interface from core class usage 2015-02-25 22:21:24 +01:00
template.php Deprecate Util::formatDate() 2014-12-10 11:58:56 +01:00
tempmanager.php Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
testcase.php Keep shared locks in post hooks 2015-06-25 16:33:02 +02:00
testmoveablemountpoint.php Keep shared locks in post hooks 2015-06-25 16:33:02 +02:00
updater.php Add wrapper for Guzzle 2015-03-25 16:04:41 +01:00
urlgenerator.php Cache \OC\URLGenerator::imagePath 2015-03-17 12:35:47 +01:00
user.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
util.php Select the timezone on the right timestamp and assert it 2015-04-07 10:13:51 +02:00
utilcheckserver.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00