diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-10 11:00:19 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-10 17:18:13 +0200 |
commit | cbacca4202eada659543974eac7bb5f2bb46c2b9 (patch) | |
tree | 0b3dd3e792b426157fb1564e45961c87cf23f405 /apps/files_sharing/tests | |
parent | 235563f0a0481209f2e5d0303afe0b4db36bfcb6 (diff) | |
download | nextcloud-server-cbacca4202eada659543974eac7bb5f2bb46c2b9.tar.gz nextcloud-server-cbacca4202eada659543974eac7bb5f2bb46c2b9.zip |
move capabilities to share by mail app
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/CapabilitiesTest.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/CapabilitiesTest.php b/apps/files_sharing/tests/CapabilitiesTest.php index 79ac1854e40..663adc1f271 100644 --- a/apps/files_sharing/tests/CapabilitiesTest.php +++ b/apps/files_sharing/tests/CapabilitiesTest.php @@ -57,9 +57,7 @@ class CapabilitiesTest extends \Test\TestCase { private function getResults(array $map) { $config = $this->getMockBuilder('\OCP\IConfig')->disableOriginalConstructor()->getMock(); $config->method('getAppValue')->will($this->returnValueMap($map)); - $appManager = $this->getMockBuilder(IAppManager::class)->getMock(); - $appManager->expects($this->any())->method('isEnabledForUser')->with('sharebymail')->willReturn(true); - $cap = new Capabilities($config, $appManager); + $cap = new Capabilities($config); $result = $this->getFilesSharingPart($cap->getCapabilities()); return $result; } |