summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/capabilities.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-03-21 20:12:55 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2015-08-10 10:45:16 +0200
commite84cffc063d508f8984909ba3e744eff970ecb88 (patch)
tree07bc4621077f256e3cb28748edab533791201a08 /apps/files_sharing/tests/capabilities.php
parent7e6a2b71fd80fedabc64d10bee5ba0edc0b19cf0 (diff)
downloadnextcloud-server-e84cffc063d508f8984909ba3e744eff970ecb88.tar.gz
nextcloud-server-e84cffc063d508f8984909ba3e744eff970ecb88.zip
Moved core apps to the capabilities manager
* Files * Files_Sharing * Files_Trashbin * Files_Versions
Diffstat (limited to 'apps/files_sharing/tests/capabilities.php')
-rw-r--r--apps/files_sharing/tests/capabilities.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/capabilities.php b/apps/files_sharing/tests/capabilities.php
index a7c487bf589..b0f6390b013 100644
--- a/apps/files_sharing/tests/capabilities.php
+++ b/apps/files_sharing/tests/capabilities.php
@@ -36,9 +36,8 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
* @return string[]
*/
private function getFilesSharingPart(array $data) {
- $this->assertArrayHasKey('capabilities', $data);
- $this->assertArrayHasKey('files_sharing', $data['capabilities']);
- return $data['capabilities']['files_sharing'];
+ $this->assertArrayHasKey('files_sharing', $data);
+ return $data['files_sharing'];
}
/**
@@ -53,7 +52,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
$stub = $this->getMockBuilder('\OCP\IConfig')->disableOriginalConstructor()->getMock();
$stub->method('getAppValue')->will($this->returnValueMap($map));
$cap = new Capabilities($stub);
- $result = $this->getFilesSharingPart($cap->getCaps()->getData());
+ $result = $this->getFilesSharingPart($cap->getCapabilities());
return $result;
}