2016-03-15 14:53:16 +01:00
|
|
|
<?php
|
2016-07-21 18:13:36 +02:00
|
|
|
/**
|
2024-05-10 15:09:14 +02:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-07-21 18:13:36 +02:00
|
|
|
*/
|
2016-03-15 14:53:16 +01:00
|
|
|
use Behat\Behat\Context\Context;
|
|
|
|
use Behat\Behat\Context\SnippetAcceptingContext;
|
|
|
|
|
|
|
|
require __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Features context.
|
|
|
|
*/
|
|
|
|
class ShareesContext implements Context, SnippetAcceptingContext {
|
2019-06-03 15:24:26 +02:00
|
|
|
use Sharing;
|
2016-03-15 14:53:16 +01:00
|
|
|
use AppConfiguration;
|
|
|
|
|
|
|
|
protected function resetAppConfigs() {
|
2020-11-12 11:51:37 +01:00
|
|
|
$this->deleteServerConfig('core', 'shareapi_only_share_with_group_members');
|
|
|
|
$this->deleteServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration');
|
|
|
|
$this->deleteServerConfig('core', 'shareapi_allow_group_sharing');
|
2016-03-15 14:53:16 +01:00
|
|
|
}
|
|
|
|
}
|