diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-02 14:03:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 14:03:51 +0100 |
commit | 337cd251872371f064968cdd8731929124ac4fb3 (patch) | |
tree | 1ce07f5f1e9846f898b475ecd4ac3bdbd2c707aa /tests | |
parent | f5728f2c14bdbde707bdf87720cb4058866eac11 (diff) | |
parent | 248d95339d67f05cc0d05d9963750edc2af65f66 (diff) | |
download | nextcloud-server-337cd251872371f064968cdd8731929124ac4fb3.tar.gz nextcloud-server-337cd251872371f064968cdd8731929124ac4fb3.zip |
Merge pull request #12200 from nextcloud/tech-debt/noid/cleanup-legacy-sharing
Cleanup some unused sharing methods from the old sharing code
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Settings/Admin/SharingTest.php | 7 |
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 ); } |