Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-12-07 13:12:32 +0300
committerGitHub <noreply@github.com>2021-12-07 13:12:32 +0300
commit3635f89b21a6af0eb376efb44de7dfa993671188 (patch)
tree5365b523f90728dcc89df7d8d6c9ca8c24f4606f /tests
parenta60ff07c63a5f62968361b4fbbda1915fad84cbe (diff)
parentd4f6ff8123e0eea1dc6c01f45538890dd672c812 (diff)
Merge pull request #6664 from nextcloud/feature/reduce-psalm-info
Reduce psalm info
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Federation/FederationTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/php/Federation/FederationTest.php b/tests/php/Federation/FederationTest.php
index 8c107cc34..401562fe4 100644
--- a/tests/php/Federation/FederationTest.php
+++ b/tests/php/Federation/FederationTest.php
@@ -24,6 +24,7 @@ namespace OCA\Talk\Tests\php\Federation;
use OC\Federation\CloudFederationShare;
use OCA\FederatedFileSharing\AddressHandler;
+use OCA\Talk\Config;
use OCA\Talk\Federation\CloudFederationProviderTalk;
use OCA\Talk\Federation\FederationManager;
use OCA\Talk\Federation\Notifications;
@@ -58,6 +59,9 @@ class FederationTest extends TestCase {
/** @var ICloudFederationFactory */
protected $cloudFederationFactory;
+ /** @var Config */
+ protected $config;
+
/** @var AddressHandler */
protected $addressHandler;
@@ -81,6 +85,7 @@ class FederationTest extends TestCase {
$this->addressHandler = $this->createMock(AddressHandler::class);
$this->userManager = $this->createMock(IUserManager::class);
$this->attendeeMapper = $this->createMock(AttendeeMapper::class);
+ $this->config = $this->createMock(Config::class);
$this->notifications = new Notifications(
$this->cloudFederationFactory,
@@ -98,6 +103,7 @@ class FederationTest extends TestCase {
$this->userManager,
$this->addressHandler,
$this->federationManager,
+ $this->config,
$this->notificationManager,
$this->createMock(IURLGenerator::class),
$this->createMock(ParticipantService::class),
@@ -230,7 +236,7 @@ class FederationTest extends TestCase {
->with($shareWithUser, $providerId, $roomType, $roomName, $name, $remote, $token)
->willReturn(20);
- $this->federationManager->method('isEnabled')
+ $this->config->method('isFederationEnabled')
->willReturn(true);
$this->addressHandler->expects($this->once())