12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- use Behat\Behat\Context\Context;
- use Behat\Behat\Context\SnippetAcceptingContext;
- require __DIR__ . '/../../vendor/autoload.php';
- class SharingContext implements Context, SnippetAcceptingContext {
- use WebDav;
- use Trashbin;
- use AppConfiguration;
- use CommandLine;
- protected function resetAppConfigs() {
- $this->deleteServerConfig('core', 'shareapi_default_permissions');
- $this->deleteServerConfig('core', 'shareapi_default_internal_expire_date');
- $this->deleteServerConfig('core', 'shareapi_internal_expire_after_n_days');
- $this->deleteServerConfig('core', 'internal_defaultExpDays');
- $this->deleteServerConfig('core', 'shareapi_enforce_links_password');
- $this->deleteServerConfig('core', 'shareapi_default_expire_date');
- $this->deleteServerConfig('core', 'shareapi_expire_after_n_days');
- $this->deleteServerConfig('core', 'link_defaultExpDays');
- $this->runOcc(['config:system:delete', 'share_folder']);
- }
- }
|