diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-11 02:11:28 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-18 02:55:12 +0000 |
commit | 1fc0b4320c8921ad59bf4d41a88bf9936e1f653d (patch) | |
tree | 8d630f864f4a2760f72307e68553cc2ee0c516d4 /tests | |
parent | d364edcf6a18fa237dc53f6b95614851ed5fdc9a (diff) | |
download | nextcloud-server-1fc0b4320c8921ad59bf4d41a88bf9936e1f653d.tar.gz nextcloud-server-1fc0b4320c8921ad59bf4d41a88bf9936e1f653d.zip |
Add global profile toggle config
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php b/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php index 98a31254c3e..bd82c203ff5 100644 --- a/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php +++ b/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php @@ -27,7 +27,7 @@ namespace Tests\Contacts\ContactsMenu; use OC\Contacts\ContactsMenu\ContactsStore; use OC\KnownUser\KnownUserService; -use OCP\Accounts\IAccountManager; +use OC\Profile\ProfileManager; use OCP\Contacts\IManager; use OCP\IConfig; use OCP\IGroupManager; @@ -39,12 +39,12 @@ use PHPUnit\Framework\MockObject\MockObject; use Test\TestCase; class ContactsStoreTest extends TestCase { - /** @var IAccountManager */ - private $accountManager; /** @var ContactsStore */ private $contactsStore; /** @var IManager|\PHPUnit\Framework\MockObject\MockObject */ private $contactsManager; + /** @var ProfileManager */ + private $profileManager; /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */ private $userManager; /** @var IURLGenerator */ @@ -61,18 +61,18 @@ class ContactsStoreTest extends TestCase { protected function setUp(): void { parent::setUp(); - $this->accountManager = $this->createMock(IAccountManager::class); $this->contactsManager = $this->createMock(IManager::class); $this->userManager = $this->createMock(IUserManager::class); + $this->profileManager = $this->createMock(ProfileManager::class); $this->urlGenerator = $this->createMock(IURLGenerator::class); $this->groupManager = $this->createMock(IGroupManager::class); $this->config = $this->createMock(IConfig::class); $this->knownUserService = $this->createMock(KnownUserService::class); $this->l10nFactory = $this->createMock(IL10NFactory::class); $this->contactsStore = new ContactsStore( - $this->accountManager, $this->contactsManager, $this->config, + $this->profileManager, $this->userManager, $this->urlGenerator, $this->groupManager, |