diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-21 11:17:14 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-24 16:21:26 +0100 |
commit | 61f7f13bd81948f6179bb8f70b6711c002ddd70e (patch) | |
tree | f1238dd97d93203637bb203d4cf649b65c8fbc4a /tests/lib/Files/Node | |
parent | e8c1f75064ae008e50daa087924de5d29368747e (diff) | |
download | nextcloud-server-61f7f13bd81948f6179bb8f70b6711c002ddd70e.tar.gz nextcloud-server-61f7f13bd81948f6179bb8f70b6711c002ddd70e.zip |
Migrate from ILogger to LoggerInterface where needed in the tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Files/Node')
-rw-r--r-- | tests/lib/Files/Node/HookConnectorTest.php | 4 | ||||
-rw-r--r-- | tests/lib/Files/Node/IntegrationTest.php | 4 | ||||
-rw-r--r-- | tests/lib/Files/Node/NodeTest.php | 6 | ||||
-rw-r--r-- | tests/lib/Files/Node/RootTest.php | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/Files/Node/HookConnectorTest.php b/tests/lib/Files/Node/HookConnectorTest.php index 5e0b4017243..f99db6599fd 100644 --- a/tests/lib/Files/Node/HookConnectorTest.php +++ b/tests/lib/Files/Node/HookConnectorTest.php @@ -30,9 +30,9 @@ use OCP\Files\Events\Node\NodeRenamedEvent; use OCP\Files\Events\Node\NodeTouchedEvent; use OCP\Files\Events\Node\NodeWrittenEvent; use OCP\Files\Node; -use OCP\ILogger; use OCP\IUserManager; use PHPUnit\Framework\MockObject\MockObject; +use Psr\Log\LoggerInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\GenericEvent; use Test\TestCase; @@ -77,7 +77,7 @@ class HookConnectorTest extends TestCase { $this->view, \OC::$server->getUserManager()->get($this->userId), \OC::$server->getUserMountCache(), - $this->createMock(ILogger::class), + $this->createMock(LoggerInterface::class), $this->createMock(IUserManager::class), $this->createMock(IEventDispatcher::class) ); diff --git a/tests/lib/Files/Node/IntegrationTest.php b/tests/lib/Files/Node/IntegrationTest.php index 71e8793ad6f..5ef5a134e1b 100644 --- a/tests/lib/Files/Node/IntegrationTest.php +++ b/tests/lib/Files/Node/IntegrationTest.php @@ -13,8 +13,8 @@ use OC\Files\Storage\Temporary; use OC\Files\View; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Mount\IMountManager; -use OCP\ILogger; use OCP\IUserManager; +use Psr\Log\LoggerInterface; use Test\Traits\UserTrait; /** @@ -59,7 +59,7 @@ class IntegrationTest extends \Test\TestCase { $this->view, $user, \OC::$server->getUserMountCache(), - $this->createMock(ILogger::class), + $this->createMock(LoggerInterface::class), $this->createMock(IUserManager::class), $this->createMock(IEventDispatcher::class) ); diff --git a/tests/lib/Files/Node/NodeTest.php b/tests/lib/Files/Node/NodeTest.php index a60a20b99f3..cc936baacb0 100644 --- a/tests/lib/Files/Node/NodeTest.php +++ b/tests/lib/Files/Node/NodeTest.php @@ -16,9 +16,9 @@ use OCP\Files\IRootFolder; use OCP\Files\Node; use OCP\Files\NotFoundException; use OCP\Files\Storage; -use OCP\ILogger; use OCP\IUser; use OCP\IUserManager; +use Psr\Log\LoggerInterface; /** * Class NodeTest @@ -36,7 +36,7 @@ abstract class NodeTest extends \Test\TestCase { protected $root; /** @var \OCP\Files\Config\IUserMountCache|\PHPUnit\Framework\MockObject\MockObject */ protected $userMountCache; - /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ + /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */ protected $logger; /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */ protected $userManager; @@ -56,7 +56,7 @@ abstract class NodeTest extends \Test\TestCase { $this->userMountCache = $this->getMockBuilder('\OCP\Files\Config\IUserMountCache') ->disableOriginalConstructor() ->getMock(); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->userManager = $this->createMock(IUserManager::class); $this->eventDispatcher = $this->createMock(IEventDispatcher::class); $this->root = $this->getMockBuilder('\OC\Files\Node\Root') diff --git a/tests/lib/Files/Node/RootTest.php b/tests/lib/Files/Node/RootTest.php index a7f7dc02e01..fe151d70dc3 100644 --- a/tests/lib/Files/Node/RootTest.php +++ b/tests/lib/Files/Node/RootTest.php @@ -14,9 +14,9 @@ use OC\Files\Mount\Manager; use OC\Files\Node\Folder; use OC\Files\View; use OCP\EventDispatcher\IEventDispatcher; -use OCP\ILogger; use OCP\IUser; use OCP\IUserManager; +use Psr\Log\LoggerInterface; /** * Class RootTest @@ -30,7 +30,7 @@ class RootTest extends \Test\TestCase { private $manager; /** @var \OCP\Files\Config\IUserMountCache|\PHPUnit\Framework\MockObject\MockObject */ private $userMountCache; - /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ + /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */ private $logger; /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */ private $userManager; @@ -47,7 +47,7 @@ class RootTest extends \Test\TestCase { $this->userMountCache = $this->getMockBuilder('\OCP\Files\Config\IUserMountCache') ->disableOriginalConstructor() ->getMock(); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->userManager = $this->createMock(IUserManager::class); $this->eventDispatcher = $this->createMock(IEventDispatcher::class); } |