1
0

ShareesContext.php 731 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. use Behat\Behat\Context\Context;
  8. use Behat\Behat\Context\SnippetAcceptingContext;
  9. require __DIR__ . '/../../vendor/autoload.php';
  10. /**
  11. * Features context.
  12. */
  13. class ShareesContext implements Context, SnippetAcceptingContext {
  14. use Sharing;
  15. use AppConfiguration;
  16. protected function resetAppConfigs() {
  17. $this->deleteServerConfig('core', 'shareapi_only_share_with_group_members');
  18. $this->deleteServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration');
  19. $this->deleteServerConfig('core', 'shareapi_allow_group_sharing');
  20. }
  21. }