2020use OCP \Accounts \IAccountManager ;
2121use OCP \Accounts \IAccountProperty ;
2222use OCP \Accounts \IAccountPropertyCollection ;
23+ use OCP \App \IAppManager ;
2324use OCP \AppFramework \Http \DataResponse ;
2425use OCP \AppFramework \OCS \OCSException ;
2526use OCP \EventDispatcher \IEventDispatcher ;
@@ -81,6 +82,8 @@ class UsersControllerTest extends TestCase {
8182 private IRootFolder $ rootFolder ;
8283 /** @var IPhoneNumberUtil */
8384 private $ phoneNumberUtil ;
85+ /** @var IAppManager|MockObject */
86+ protected $ appManager ;
8487
8588 protected function setUp (): void {
8689 parent ::setUp ();
@@ -101,6 +104,7 @@ protected function setUp(): void {
101104 $ this ->knownUserService = $ this ->createMock (KnownUserService::class);
102105 $ this ->eventDispatcher = $ this ->createMock (IEventDispatcher::class);
103106 $ this ->phoneNumberUtil = new PhoneNumberUtil ();
107+ $ this ->appManager = $ this ->createMock (IAppManager::class);
104108 $ this ->rootFolder = $ this ->createMock (IRootFolder::class);
105109
106110 $ l10n = $ this ->createMock (IL10N ::class);
@@ -127,6 +131,7 @@ protected function setUp(): void {
127131 $ this ->knownUserService ,
128132 $ this ->eventDispatcher ,
129133 $ this ->phoneNumberUtil ,
134+ $ this ->appManager ,
130135 ])
131136 ->onlyMethods (['fillStorageInfo ' ])
132137 ->getMock ();
@@ -522,6 +527,7 @@ public function testAddUserSuccessfulWithDisplayName(): void {
522527 $ this ->knownUserService ,
523528 $ this ->eventDispatcher ,
524529 $ this ->phoneNumberUtil ,
530+ $ this ->appManager ,
525531 ])
526532 ->onlyMethods (['editUser ' ])
527533 ->getMock ();
@@ -3825,6 +3831,7 @@ public function testGetCurrentUserLoggedIn(): void {
38253831 $ this ->knownUserService ,
38263832 $ this ->eventDispatcher ,
38273833 $ this ->phoneNumberUtil ,
3834+ $ this ->appManager ,
38283835 ])
38293836 ->onlyMethods (['getUserData ' ])
38303837 ->getMock ();
@@ -3916,6 +3923,7 @@ public function testGetUser(): void {
39163923 $ this ->knownUserService ,
39173924 $ this ->eventDispatcher ,
39183925 $ this ->phoneNumberUtil ,
3926+ $ this ->appManager ,
39193927 ])
39203928 ->onlyMethods (['getUserData ' ])
39213929 ->getMock ();
0 commit comments