nextcloud/tests/lib
Lukas Reschke 05615bfd47 Simplify isValidPath and add unit tests
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
2015-01-10 00:40:21 +01:00
..
app Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
appframework Intelligent container 2014-12-23 09:50:42 +01:00
archive Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
backgroundjob Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
cache Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
connector/sabre Use proper test name 2015-01-05 09:54:14 +01:00
contacts Make class compatible 2014-12-09 12:25:22 +01:00
db Merge pull request #12995 from owncloud/tbelau666-master 2015-01-09 14:17:14 +01:00
files Simplify isValidPath and add unit tests 2015-01-10 00:40:21 +01:00
group add isAdmin and isInGroup methods for the group manager 2014-12-17 17:41:57 +01:00
hooks Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
memcache Add Redis cache implementation, prefer over memcached, tests & config sample 2014-12-10 12:24:20 +01:00
ocs Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
public Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
repair Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
security Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
session Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
share Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
template Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
user introduce names for user backends - IUserBackend 2014-12-19 10:17:17 +01:00
activitymanager.php Add test for getSpecialParameterList() 2014-12-11 15:01:45 +01: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 Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
appconfig.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
archive.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
autoloader.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
avatar.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
cache.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
config.php drop unused isDebugMode and setDebugMode of OC_Config 2014-12-08 22:42:44 +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 Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01: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
geo.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 Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
helperstorage.php reduce OC_Preferences, OC_Config and \OCP\Config usage 2014-12-08 22:42:37 +01:00
httphelper.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
image.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
installer.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
l10n.php Correctly fallback to english, if the plural case is not translated 2014-12-11 12:42:21 +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 Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
mail.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
naturalsort.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
preview.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
repair.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
request.php Add test for IPv6 without port 2014-12-04 12:16:33 +01:00
setup.php Add version to .htaccess 2015-01-08 12:49:02 +01:00
streamwrappers.php HHVM Workaround: Do not use Exception from Stream. 2015-01-09 17:01:17 +01:00
tags.php Add user parameter to tag manager 2014-12-11 12:22:28 +01:00
template.php Deprecate Util::formatDate() 2014-12-10 11:58:56 +01:00
templatelayout.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
tempmanager.php fix failing unit test for the temp manager - concurrently executed unit tests influence each other 2014-11-25 22:16:48 +01:00
testcase.php Add login/logout to TestCase base class 2014-12-10 16:11:27 +01:00
updater.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
urlgenerator.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
user.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
util.php Move timezone logic out of server.php 2014-12-16 16:16:22 +01:00
utilcheckserver.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
vobject.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00