Commit 80046aa
committed
test(sharing): sort recipients before asserting in testGetShareWithPublicSecret
The error in question
```diff
ApiV1ControllerTest::testGetShareWithPublicSecret with data set #0 (true)
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'class' => 'Test\Sharing\TestShareRecipientType1'
- 'value' => 'recipient1'
+ 'class' => 'Test\Sharing\TestShareRecipientTypePublicSecret'
+ 'value' => 'recipient2'
'instance' => null
- 'display_name' => 'Recipient 1'
+ 'display_name' => 'Recipient 2'
'icon' => [...]
'secret' => Array (
'updatable' => false
+ 'value' => '47BN3fes63WP0usnjUyF3pUYJh36RHMl'
+ 'url' => 'http://localhost/index.php/s/...36RHMl'
)
'initiator' => [...]
)
```
Signed-off-by: Carl Schwan <carl@carlschwan.eu>1 parent 0556391 commit 80046aa
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3019 | 3019 | | |
3020 | 3020 | | |
3021 | 3021 | | |
| 3022 | + | |
| 3023 | + | |
3022 | 3024 | | |
3023 | 3025 | | |
3024 | 3026 | | |
| |||
3159 | 3161 | | |
3160 | 3162 | | |
3161 | 3163 | | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
3162 | 3167 | | |
3163 | 3168 | | |
3164 | 3169 | | |
| |||
0 commit comments