@@ -851,7 +851,6 @@ public function dataShareNotificationForOriginalOwners(): array {
851851 return [
852852 [false , false , 'owner ' , '' , 1 ],
853853 [true , false , 'owner ' , '' , 1 ],
854- [true , true , 'owner ' , null , 1 ],
855854 [true , true , 'owner ' , '' , 1 ],
856855 [true , true , 'owner ' , 'owner ' , 1 ],
857856 [true , true , 'owner ' , 'sharee ' , 2 ],
@@ -966,17 +965,15 @@ public function testShareNotificationForSharer(?string $path): void {
966965
967966 public function dataAddNotificationsForUser (): array {
968967 return [
969- ['user ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , true , false , Files_Sharing::TYPE_SHARED , false , false , 'files_sharing ' , false , false ],
970- ['user ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , true , false , Files_Sharing::TYPE_SHARED , true , false , 'files_sharing ' , true , false ],
971- ['notAuthor ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , true , false , Files::TYPE_SHARE_CREATED , false , false , 'files ' , true , false ],
972- ['notAuthor ' , 'subject ' , ['parameter ' ], 0 , 'path/subpath ' , 'path ' , true , true , false , Files::TYPE_SHARE_CREATED , false , false , 'files ' , true , false ],
973-
974- ['user ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , false , true , Files_Sharing::TYPE_SHARED , false , false , 'files_sharing ' , false , false ],
975- ['user ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , false , true , Files_Sharing::TYPE_SHARED , false , true , 'files_sharing ' , false , true ],
976- ['notAuthor ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , false , true , Files::TYPE_SHARE_CREATED , false , false , 'files ' , false , true ],
977- ['notAuthor ' , 'subject ' , ['parameter ' ], 0 , 'path/subpath ' , 'path ' , true , false , true , Files::TYPE_SHARE_CREATED , false , false , 'files ' , false , true ],
978- ['notAuthor ' , 'subject ' , ['parameter ' ], 0 , 'path/subpath ' , 'path ' , true , false , true , Files::TYPE_SHARE_CREATED , false , false , 'files ' , false , true ],
979- ['notAuthor ' , 'subject ' , ['parameter ' ], 0 , 'path/subpath ' , 'path/subpath ' , false , false , true , Files::TYPE_SHARE_CREATED , false , false , 'files ' , false , true ],
968+ ['user ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , true , false , Files_Sharing::TYPE_SHARED , 'files_sharing ' , false ],
969+ ['user ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , true , false , Files_Sharing::TYPE_SHARED , 'files_sharing ' , false ],
970+ ['notAuthor ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , true , false , Files::TYPE_SHARE_CREATED , 'files ' , false ],
971+ ['notAuthor ' , 'subject ' , ['parameter ' ], 0 , 'path/subpath ' , 'path ' , true , true , false , Files::TYPE_SHARE_CREATED , 'files ' , false ],
972+
973+ ['user ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , false , true , Files_Sharing::TYPE_SHARED , 'files_sharing ' , false ],
974+ ['notAuthor ' , 'subject ' , ['parameter ' ], 42 , 'path/subpath ' , 'path ' , true , false , true , Files::TYPE_SHARE_CREATED , 'files ' , true ],
975+ ['notAuthor ' , 'subject ' , ['parameter ' ], 0 , 'path/subpath ' , 'path ' , true , false , true , Files::TYPE_SHARE_CREATED , 'files ' , true ],
976+ ['notAuthor ' , 'subject ' , ['parameter ' ], 0 , 'path/subpath ' , 'path/subpath ' , false , false , true , Files::TYPE_SHARE_CREATED , 'files ' , true ],
980977 ];
981978 }
982979
@@ -993,20 +990,10 @@ public function dataAddNotificationsForUser(): array {
993990 * @param bool $notification
994991 * @param bool $email
995992 * @param string $type
996- * @param bool $selfSetting
997- * @param bool $selfEmailSetting
998993 * @param string $app
999- * @param bool $sentStream
1000994 * @param bool $sentEmail
1001995 */
1002- public function testAddNotificationsForUser (string $ user , string $ subject , array $ parameter , int $ fileId , string $ path , string $ urlPath , bool $ isFile , bool $ notification , bool $ email , string $ type , bool $ selfSetting , bool $ selfEmailSetting , string $ app , bool $ sentStream , bool $ sentEmail ): void {
1003- $ this ->settings ->expects ($ this ->any ())
1004- ->method ('getUserSetting ' )
1005- ->willReturnMap ([
1006- [$ user , 'setting ' , 'self ' , $ selfSetting ],
1007- [$ user , 'setting ' , 'selfemail ' , $ selfEmailSetting ],
1008- ]);
1009-
996+ public function testAddNotificationsForUser (string $ user , string $ subject , array $ parameter , int $ fileId , string $ path , string $ urlPath , bool $ isFile , bool $ notification , bool $ email , string $ type , string $ app , bool $ sentEmail ): void {
1010997 $ this ->urlGenerator ->expects ($ this ->once ())
1011998 ->method ('linkToRouteAbsolute ' )
1012999 ->with ('files.view.index ' , ['dir ' => $ urlPath ])
0 commit comments