]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests 5648/head
authorJoas Schilling <coding@schilljs.com>
Tue, 20 Jun 2017 12:25:24 +0000 (14:25 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 7 Jul 2017 09:16:54 +0000 (11:16 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php
tests/Settings/Activity/SecurityProviderTest.php

index e1a13c89c103abaf777281c1db4685748bc0f189..a56098556e50b2423afde4db33caf77f08ce353c 100644 (file)
@@ -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() {
index 2abc14654f17942346b93321ba103e648f1daaac..21fc28f3c3b4bff290b82d8f58a905c17bca8f80 100644 (file)
@@ -25,8 +25,8 @@ namespace Tests\Settings\Activity;
 use InvalidArgumentException;
 use OC\Settings\Activity\SecurityProvider;
 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 SecurityProviderTest 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 SecurityProvider */
        private $provider;
@@ -51,9 +51,9 @@ class SecurityProviderTest 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 SecurityProvider($this->l10n, $this->urlGenerator, $this->logger);
+               $this->provider = new SecurityProvider($this->l10n, $this->urlGenerator, $this->activityManager);
        }
 
        public function testParseUnrelated() {