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:
authorMorris Jobke <hey@morrisjobke.de>2018-11-02 01:18:44 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-11-02 12:49:42 +0300
commit248d95339d67f05cc0d05d9963750edc2af65f66 (patch)
tree61774ce203bf5fe3b91aa2830a6d4634a69e3065 /tests
parent35e3d40e803653e2fdfcd775eefc2d8a9a183d80 (diff)
Cleanup some unused sharing methods from the old sharing code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Settings/Admin/SharingTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Settings/Admin/SharingTest.php b/tests/lib/Settings/Admin/SharingTest.php
index 79065fb8d21..c97f22e54b6 100644
--- a/tests/lib/Settings/Admin/SharingTest.php
+++ b/tests/lib/Settings/Admin/SharingTest.php
@@ -28,6 +28,7 @@ use OCP\AppFramework\Http\TemplateResponse;
use OCP\Constants;
use OCP\IConfig;
use OCP\IL10N;
+use OCP\Share\IManager;
use Test\TestCase;
class SharingTest extends TestCase {
@@ -37,15 +38,19 @@ class SharingTest extends TestCase {
private $config;
/** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
private $l10n;
+ /** @var IManager|\PHPUnit_Framework_MockObject_MockObject */
+ private $shareManager;
public function setUp() {
parent::setUp();
$this->config = $this->getMockBuilder(IConfig::class)->getMock();
$this->l10n = $this->getMockBuilder(IL10N::class)->getMock();
+ $this->shareManager = $this->getMockBuilder(IManager::class)->getMock();
$this->admin = new Sharing(
$this->config,
- $this->l10n
+ $this->l10n,
+ $this->shareManager
);
}