aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-09-15 01:24:05 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-09-19 00:35:20 +0200
commit44c724874919240ccd524abce623068317e8d66e (patch)
tree366b914ec3e3b0391b01918be1d1ce9583749c25 /tests
parentfe05882628aed7e4959ae7c363ba2909a75533cc (diff)
downloadnextcloud-server-44c724874919240ccd524abce623068317e8d66e.tar.gz
nextcloud-server-44c724874919240ccd524abce623068317e8d66e.zip
refactor(Collaboration): Use non-deprecated methods
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Collaboration/Resources/ManagerTest.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/lib/Collaboration/Resources/ManagerTest.php b/tests/lib/Collaboration/Resources/ManagerTest.php
index 4ca88da8678..0e4e42458e2 100644
--- a/tests/lib/Collaboration/Resources/ManagerTest.php
+++ b/tests/lib/Collaboration/Resources/ManagerTest.php
@@ -12,16 +12,15 @@ use OC\Collaboration\Resources\Manager;
use OCP\Collaboration\Resources\IManager;
use OCP\Collaboration\Resources\IProviderManager;
use OCP\IDBConnection;
+use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
use Test\TestCase;
class ManagerTest extends TestCase {
- /** @var LoggerInterface */
- protected $logger;
- /** @var IProviderManager */
- protected $providerManager;
- /** @var IManager */
- protected $manager;
+
+ protected LoggerInterface&MockObject $logger;
+ protected IProviderManager&MockObject $providerManager;
+ protected IManager $manager;
protected function setUp(): void {
parent::setUp();