Skip to content

Commit 74fd144

Browse files
committed
test: Replace magic value with named constant of share type
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
1 parent a0e8d94 commit 74fd144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lib/Collaboration/Collaborators/MailPluginTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ public static function dataGetEmailGroupsOnly(): array {
646646
'UID' => 'User'
647647
]
648648
],
649-
['users' => [['label' => 'User ([email protected])', 'uuid' => 'User', 'name' => 'User', 'value' => ['shareType' => 0, 'shareWith' => 'test'],'shareWithDisplayNameUnique' => '[email protected]',]], 'emails' => [], 'exact' => ['emails' => [], 'users' => []]],
649+
['users' => [['label' => 'User ([email protected])', 'uuid' => 'User', 'name' => 'User', 'value' => ['shareType' => IShare::TYPE_USER, 'shareWith' => 'test'],'shareWithDisplayNameUnique' => '[email protected]',]], 'emails' => [], 'exact' => ['emails' => [], 'users' => []]],
650650
false,
651651
false,
652652
[
@@ -688,7 +688,7 @@ public static function dataGetEmailGroupsOnly(): array {
688688
'UID' => 'User'
689689
]
690690
],
691-
['emails' => [], 'exact' => ['emails' => [['label' => '[email protected]', 'uuid' => '[email protected]', 'value' => ['shareType' => 4,'shareWith' => '[email protected]']]]]],
691+
['emails' => [], 'exact' => ['emails' => [['label' => '[email protected]', 'uuid' => '[email protected]', 'value' => ['shareType' => IShare::TYPE_EMAIL,'shareWith' => '[email protected]']]]]],
692692
false,
693693
false,
694694
[

0 commit comments

Comments
 (0)