diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-05 16:00:47 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-03-05 16:00:47 +0100 |
commit | dd2496b2756633a961424560934a216ab1048e1b (patch) | |
tree | 32289e31339b8031061e3bb7db58e0b8ffc673c4 /apps/dav/tests | |
parent | 789aaa489d32fb96ce5ac63c9214e783c0a6c26e (diff) | |
download | nextcloud-server-dd2496b2756633a961424560934a216ab1048e1b.tar.gz nextcloud-server-dd2496b2756633a961424560934a216ab1048e1b.zip |
Use proper dependency injection for app manager
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php b/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php index b72ae0a743d..b40cd3105aa 100644 --- a/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php @@ -29,6 +29,7 @@ namespace OCA\DAV\Tests\unit\Connector\Sabre; use OC\User\User; +use OCP\App\IAppManager; use OCP\IConfig; use OCP\IGroup; use OCP\IGroupManager; @@ -59,19 +60,25 @@ class PrincipalTest extends TestCase { /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */ private $config; + /** @var IAppManager | \PHPUnit_Framework_MockObject_MockObject */ + private $appManager; + public function setUp() { $this->userManager = $this->createMock(IUserManager::class); $this->groupManager = $this->createMock(IGroupManager::class); $this->shareManager = $this->createMock(IManager::class); $this->userSession = $this->createMock(IUserSession::class); $this->config = $this->createMock(IConfig::class); + $this->appManager = $this->createMock(IAppManager::class); $this->connector = new \OCA\DAV\Connector\Sabre\Principal( $this->userManager, $this->groupManager, $this->shareManager, $this->userSession, - $this->config); + $this->config, + $this->appManager + ); parent::setUp(); } |