diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-10-10 16:07:01 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-10-10 16:07:01 +0200 |
commit | fd5fc24da26293e188b44c576a74b6ffbf5e1481 (patch) | |
tree | abf491f9de2c16a896d70ba2e9390650d3106a99 /tests | |
parent | 9e76d4049a00d2349ca2a4d3daeb4b36c9252b0c (diff) | |
download | nextcloud-server-fd5fc24da26293e188b44c576a74b6ffbf5e1481.tar.gz nextcloud-server-fd5fc24da26293e188b44c576a74b6ffbf5e1481.zip |
some small fixes and improvements
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Collaboration/Collaborators/LookupPluginTest.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php index 20a1f962306..a2707016fb8 100644 --- a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php +++ b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php @@ -34,6 +34,7 @@ use OCP\Http\Client\IClient; use OCP\Http\Client\IClientService; use OCP\Http\Client\IResponse; use OCP\IConfig; +use OCP\ILogger; use OCP\IUser; use OCP\IUserSession; use OCP\Share; @@ -51,6 +52,8 @@ class LookupPluginTest extends TestCase { protected $cloudIdManager; /** @var LookupPlugin */ protected $plugin; + /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */ + protected $logger; public function setUp() { parent::setUp(); @@ -58,6 +61,7 @@ class LookupPluginTest extends TestCase { $this->userSession = $this->createMock(IUserSession::class); $this->cloudIdManager = $this->createMock(ICloudIdManager::class); $this->config = $this->createMock(IConfig::class); + $this->logger = $this->createMock(ILogger::class); $this->clientService = $this->createMock(IClientService::class); $cloudId = $this->createMock(ICloudId::class); $cloudId->expects($this->any())->method('getRemote')->willReturn('myNextcloud.net'); @@ -74,7 +78,13 @@ class LookupPluginTest extends TestCase { }); - $this->plugin = new LookupPlugin($this->config, $this->clientService, $this->userSession, $this->cloudIdManager); + $this->plugin = new LookupPlugin( + $this->config, + $this->clientService, + $this->userSession, + $this->cloudIdManager, + $this->logger + ); } /** |