Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-26 17:13:33 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-27 01:34:25 +0400
commit4221490d04f1f02e89c5f06f6250fb9ec113eac9 (patch)
treeaa2fa083872c54b0cb908c3be09867be2747eb1a /tests
parent113040676322ea7316f843bdbc990a3e8deadf7d (diff)
fixes #6050
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/request.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/lib/request.php b/tests/lib/request.php
index a740751f060..090cebc9231 100644
--- a/tests/lib/request.php
+++ b/tests/lib/request.php
@@ -42,6 +42,13 @@ class Test_Request extends PHPUnit_Framework_TestCase {
array('/core/ajax/translations.php', 'index.php/core/ajax/translations.php', 'index.php'),
array('/core/ajax/translations.php', '/index.php/core/ajax/translations.php', '/index.php'),
array('/core/ajax/translations.php', '//index.php/core/ajax/translations.php', '/index.php'),
+ array('', '/oc/core', '/oc/core/index.php'),
+ array('', '/oc/core/', '/oc/core/index.php'),
+ array('', '/oc/core/index.php', '/oc/core/index.php'),
+ array('/core/ajax/translations.php', '/core/ajax/translations.php', 'index.php'),
+ array('/core/ajax/translations.php', '//core/ajax/translations.php', '/index.php'),
+ array('/core/ajax/translations.php', '/oc/core/ajax/translations.php', '/oc/index.php'),
+ array('/1', '/oc/core/1', '/oc/core/index.php'),
);
}
@@ -60,9 +67,7 @@ class Test_Request extends PHPUnit_Framework_TestCase {
function rawPathInfoThrowsExceptionProvider() {
return array(
- array('core/ajax/translations.php', '/index.php'),
- array('/core/ajax/translations.php', '/index.php'),
- array('//core/ajax/translations.php', '/index.php'),
+ array('/oc/core1', '/oc/core/index.php'),
);
}
}