diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-19 23:43:31 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-21 20:00:50 +0300 |
commit | 6c6c7d7b8a1ca189ae79d202436a4af7312ea2b6 (patch) | |
tree | aba39b120676e71d550ab060b6405e51c14e1a2f /tests | |
parent | 30d749a49876a4632bc2c731939a11401cfd5e2d (diff) |
Also check the share_with_link attribute
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/bootstrap/SharingContext.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/integration/features/bootstrap/SharingContext.php b/tests/integration/features/bootstrap/SharingContext.php index 7a66ea4e5..d8eb2295a 100644 --- a/tests/integration/features/bootstrap/SharingContext.php +++ b/tests/integration/features/bootstrap/SharingContext.php @@ -596,7 +596,8 @@ class SharingContext implements Context { 'item_source' => 'A_NUMBER', 'file_source' => 'A_NUMBER', 'file_parent' => 'A_NUMBER', - 'mail_send' => '0' + 'mail_send' => '0', + 'share_with_link' => 'URL', ]; $expectedFields = array_merge($defaultExpectedFields, $body->getRowsHash()); @@ -614,11 +615,16 @@ class SharingContext implements Context { array_key_exists('share_with', $expectedFields)) { if ($expectedFields['share_with'] === 'private_conversation') { $expectedFields['share_with'] = 'REGEXP /^private_conversation_[0-9a-f]{6}$/'; + $expectedFields['share_with_link'] = ''; } else { $expectedFields['share_with'] = FeatureContext::getTokenForIdentifier($expectedFields['share_with']); } } + if ($expectedFields['share_with_link'] === 'URL') { + $expectedFields['share_with_link'] = $this->baseUrl . 'index.php/call/' . $expectedFields['share_with']; + } + foreach ($expectedFields as $field => $value) { $share = json_decode(json_encode($returnedShare), true); if (isset($share[$field]) && empty($share[$field]) && is_array($share[$field])) { |