summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-05-30 14:20:15 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-06-04 15:13:32 +0200
commit357263a70bf56e351e0d292c6144f998dad7f079 (patch)
tree5bdf1458172cbefad7ccd90c173040d8965c6b6b /apps
parent05058b0135813c4bfc355486e04e2324e2244078 (diff)
downloadnextcloud-server-357263a70bf56e351e0d292c6144f998dad7f079.tar.gz
nextcloud-server-357263a70bf56e351e0d292c6144f998dad7f079.zip
Do not try to autoload built in types
This avoids calls to the autoloader (or chain of autoloaders) to see if for example 'principalPrefix' class can be found. While we already know it is a string. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/AppInfo/PluginManagerTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/AppInfo/PluginManagerTest.php b/apps/dav/tests/unit/AppInfo/PluginManagerTest.php
index ed19bdd53cd..0e4c0d20eaa 100644
--- a/apps/dav/tests/unit/AppInfo/PluginManagerTest.php
+++ b/apps/dav/tests/unit/AppInfo/PluginManagerTest.php
@@ -80,12 +80,12 @@ class PluginManagerTest extends TestCase {
$server->method('query')
->will($this->returnValueMap([
- ['\OCA\DAV\ADavApp\PluginOne', 'dummyplugin1'],
- ['\OCA\DAV\ADavApp\PluginTwo', 'dummyplugin2'],
- ['\OCA\DAV\ADavApp\CollectionOne', 'dummycollection1'],
- ['\OCA\DAV\ADavApp\CollectionTwo', 'dummycollection2'],
- ['\OCA\DAV\ADavApp2\PluginOne', 'dummy2plugin1'],
- ['\OCA\DAV\ADavApp2\CollectionOne', 'dummy2collection1'],
+ ['\OCA\DAV\ADavApp\PluginOne', true, 'dummyplugin1'],
+ ['\OCA\DAV\ADavApp\PluginTwo', true, 'dummyplugin2'],
+ ['\OCA\DAV\ADavApp\CollectionOne', true, 'dummycollection1'],
+ ['\OCA\DAV\ADavApp\CollectionTwo', true, 'dummycollection2'],
+ ['\OCA\DAV\ADavApp2\PluginOne', true, 'dummy2plugin1'],
+ ['\OCA\DAV\ADavApp2\CollectionOne', true, 'dummy2collection1'],
]));
$expectedPlugins = [