diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-05-11 08:22:51 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-06-16 17:12:56 +0200 |
commit | a94236483e26785dcaf97fb10e863f82348eb068 (patch) | |
tree | 72acc7ac8eb955e93704bf563cc2973149ab9f97 /tests/lib/NavigationManagerTest.php | |
parent | 4c93249514783181115be8bb040de701bffdba10 (diff) | |
download | nextcloud-server-a94236483e26785dcaf97fb10e863f82348eb068.tar.gz nextcloud-server-a94236483e26785dcaf97fb10e863f82348eb068.zip |
Let apps toggle an unread counter on app icons
Co-authored-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib/NavigationManagerTest.php')
-rw-r--r-- | tests/lib/NavigationManagerTest.php | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/tests/lib/NavigationManagerTest.php b/tests/lib/NavigationManagerTest.php index 19d01bfac0f..39f326ef0da 100644 --- a/tests/lib/NavigationManagerTest.php +++ b/tests/lib/NavigationManagerTest.php @@ -72,7 +72,8 @@ class NavigationManagerTest extends TestCase { 'icon' => 'optional', 'href' => 'url', 'type' => 'settings', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ], 'entry id2' => [ 'id' => 'entry id', @@ -82,7 +83,8 @@ class NavigationManagerTest extends TestCase { 'href' => 'url', 'active' => false, 'type' => 'settings', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ] ], [ @@ -92,7 +94,8 @@ class NavigationManagerTest extends TestCase { 'order' => 1, //'icon' => 'optional', 'href' => 'url', - 'active' => true + 'active' => true, + 'unread' => 0 ], 'entry id2' => [ 'id' => 'entry id', @@ -102,7 +105,8 @@ class NavigationManagerTest extends TestCase { 'href' => 'url', 'active' => false, 'type' => 'link', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ] ] ]; @@ -250,7 +254,8 @@ class NavigationManagerTest extends TestCase { 'name' => 'Apps', 'active' => false, 'type' => 'settings', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ] ]; $defaults = [ @@ -262,7 +267,8 @@ class NavigationManagerTest extends TestCase { 'name' => 'Settings', 'active' => false, 'type' => 'settings', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ], 'logout' => [ 'id' => 'logout', @@ -272,7 +278,8 @@ class NavigationManagerTest extends TestCase { 'name' => 'Log out', 'active' => false, 'type' => 'settings', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ] ]; @@ -288,7 +295,8 @@ class NavigationManagerTest extends TestCase { 'name' => 'Test', 'active' => false, 'type' => 'link', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ]], ['logout' => $defaults['logout']] ), @@ -309,7 +317,8 @@ class NavigationManagerTest extends TestCase { 'name' => 'Test', 'active' => false, 'type' => 'settings', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ]], ['logout' => $defaults['logout']] ), @@ -331,7 +340,8 @@ class NavigationManagerTest extends TestCase { 'name' => 'Test', 'active' => false, 'type' => 'link', - 'classes' => '' + 'classes' => '', + 'unread' => 0 ]], ['logout' => $defaults['logout']] ), |