diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-02-25 12:34:28 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-03-03 19:13:07 +0300 |
commit | 6bf4d07a3cc77497c997388d7d44b7592c0e4230 (patch) | |
tree | 0cceb978e8fb8ec9faac75e8f51979a0a8faba1a /tests | |
parent | 59cc000a092db71a40ee81a71954ef4a784c02ba (diff) |
Allow admins to hide event exports
occ config:app:set calendar hide_event_download --value=yes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/javascript/unit/store/settings.test.js | 1 | ||||
-rwxr-xr-x | tests/php/unit/Controller/ViewControllerTest.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/javascript/unit/store/settings.test.js b/tests/javascript/unit/store/settings.test.js index 4926d25b..64f735d6 100644 --- a/tests/javascript/unit/store/settings.test.js +++ b/tests/javascript/unit/store/settings.test.js @@ -49,6 +49,7 @@ describe('store/settings test suite', () => { expect(settingsStore.state).toEqual({ appVersion: null, firstRun: null, + hideEventExport: false, talkEnabled: false, eventLimit: null, showTasks: null, diff --git a/tests/php/unit/Controller/ViewControllerTest.php b/tests/php/unit/Controller/ViewControllerTest.php index 7de9fef9..f2e01a48 100755 --- a/tests/php/unit/Controller/ViewControllerTest.php +++ b/tests/php/unit/Controller/ViewControllerTest.php @@ -94,6 +94,7 @@ class ViewControllerTest extends TestCase { ['calendar', 'slotDuration', '00:30:00', 'defaultSlotDuration'], ['calendar', 'defaultReminder', 'none', 'defaultDefaultReminder'], ['calendar', 'showTasks', 'yes', 'defaultShowTasks'], + ['calendar', 'hideEventExport', 'no', 'yes'], ['calendar', 'installed_version', null, '1.0.0'], ]); $this->config @@ -143,6 +144,7 @@ class ViewControllerTest extends TestCase { ['default_reminder', '00:10:00'], ['show_tasks', false], ['tasks_enabled', true], + ['hide_event_export', true], ['appointmentConfigs', [new AppointmentConfig()]], ); |