Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(policy): disable all notifications on device
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <[email protected]>
  • Loading branch information
DIOHz0r committed Apr 30, 2018
1 parent 7d7b8f4 commit 321b07c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions install/policies/userInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,21 @@
'is_android_system' => '1',
'is_apple_policy' => '0',
],

[
'name' => __('Disable all notifications', 'flyvemdm'),
'symbol' => 'disableAllNotifications',
'group' => 'ui',
'type' => 'bool',
'type_data' => '',
'unicity' => 1,
'plugin_flyvemdm_policycategories_id' => $category,
'comment' => __('Disable any form of notification.',
'flyvemdm'),
'default_value' => '0',
'recommended_value' => '0',
'is_android_policy' => '1',
'is_android_system' => '1',
'is_apple_policy' => '0',
],
];
2 changes: 1 addition & 1 deletion tests/suite-install/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function testInstallPlugin() {
// Test policies are populated
$policy = new \PluginFlyvemdmPolicy();
$count = $dbUtils->countElementsInTable($policy::getTable());
$this->integer($count)->isEqualTo(37);
$this->integer($count)->isEqualTo(38);

// Take a snapshot of the database before any test
$this->mysql_dump($DB->dbuser, $DB->dbhost, $DB->dbpassword, $DB->dbdefault, './save.sql');
Expand Down
1 change: 1 addition & 0 deletions tests/suite-unit/PluginFlyvemdmAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ public function testGetTopicsToCleanup() {
'Policy/disableCreateVpnProfiles',
'Policy/inventoryFrequency',
'Policy/disableAllSounds',
'Policy/disableNotifications',
];

$topics = \PluginFlyvemdmAgent::getTopicsToCleanup();
Expand Down

0 comments on commit 321b07c

Please sign in to comment.