aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-20 14:25:24 +0200
committerJoas Schilling <coding@schilljs.com>2017-06-20 14:25:24 +0200
commitca3a6ec6077e4248d56550b1acb19ab72546e808 (patch)
tree83ed5ced23207253fa6d1c58095191198884fc6d /apps/twofactor_backupcodes/tests
parent90fa27694a6f454820487dcb1ca4e4ceec90a9a1 (diff)
downloadnextcloud-server-ca3a6ec6077e4248d56550b1acb19ab72546e808.tar.gz
nextcloud-server-ca3a6ec6077e4248d56550b1acb19ab72546e808.zip
Fix tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/twofactor_backupcodes/tests')
-rw-r--r--apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php b/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php
index e1a13c89c10..a56098556e5 100644
--- a/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php
+++ b/apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php
@@ -25,8 +25,8 @@ namespace OCA\TwoFactorBackupCodes\Test\Unit\Activity;
use InvalidArgumentException;
use OCA\TwoFactorBackupCodes\Activity\Provider;
use OCP\Activity\IEvent;
+use OCP\Activity\IManager;
use OCP\IL10N;
-use OCP\ILogger;
use OCP\IURLGenerator;
use OCP\L10N\IFactory;
use PHPUnit_Framework_MockObject_MockObject;
@@ -34,14 +34,14 @@ use Test\TestCase;
class ProviderTest extends TestCase {
- /** @var IL10N|PHPUnit_Framework_MockObject_MockObject */
+ /** @var IFactory|PHPUnit_Framework_MockObject_MockObject */
private $l10n;
/** @var IURLGenerator|PHPUnit_Framework_MockObject_MockObject */
private $urlGenerator;
- /** @var ILogger|PHPUnit_Framework_MockObject_MockObject */
- private $logger;
+ /** @var IManager|PHPUnit_Framework_MockObject_MockObject */
+ private $activityManager;
/** @var Provider */
private $provider;
@@ -51,9 +51,9 @@ class ProviderTest extends TestCase {
$this->l10n = $this->createMock(IFactory::class);
$this->urlGenerator = $this->createMock(IURLGenerator::class);
- $this->logger = $this->createMock(ILogger::class);
+ $this->activityManager = $this->createMock(IManager::class);
- $this->provider = new Provider($this->l10n, $this->urlGenerator, $this->logger);
+ $this->provider = new Provider($this->l10n, $this->urlGenerator, $this->activityManager);
}
public function testParseUnrelated() {