aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-10-26 10:30:22 -0700
committerChristopher Ng <chrng8@gmail.com>2023-10-26 10:30:22 -0700
commitce5e290d584cf7b9163dfe62fad43572f0f31533 (patch)
tree61eb7615eb00ccdcab561138d188248d7bf0294a /tests
parent439a6fbbdc484c33938559bcce1b5f3f4b188b82 (diff)
downloadnextcloud-server-ce5e290d584cf7b9163dfe62fad43572f0f31533.tar.gz
nextcloud-server-ce5e290d584cf7b9163dfe62fad43572f0f31533.zip
fix(tests): Test profile entry
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/NavigationManagerTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lib/NavigationManagerTest.php b/tests/lib/NavigationManagerTest.php
index 64ffd64394d..8edf7ecb9cc 100644
--- a/tests/lib/NavigationManagerTest.php
+++ b/tests/lib/NavigationManagerTest.php
@@ -276,6 +276,17 @@ class NavigationManagerTest extends TestCase {
]
];
$defaults = [
+ 'profile' => [
+ 'type' => 'settings',
+ 'id' => 'profile',
+ 'order' => 1,
+ 'href' => '/apps/test/',
+ 'name' => 'View profile',
+ 'icon' => '',
+ 'active' => false,
+ 'classes' => '',
+ 'unread' => 0,
+ ],
'accessibility_settings' => [
'type' => 'settings',
'id' => 'accessibility_settings',
@@ -339,6 +350,7 @@ class NavigationManagerTest extends TestCase {
return [
'minimalistic' => [
array_merge(
+ ['profile' => $defaults['profile']],
['accessibility_settings' => $defaults['accessibility_settings']],
['settings' => $defaults['settings']],
['test' => [
@@ -365,6 +377,7 @@ class NavigationManagerTest extends TestCase {
],
'minimalistic-settings' => [
array_merge(
+ ['profile' => $defaults['profile']],
['accessibility_settings' => $defaults['accessibility_settings']],
['settings' => $defaults['settings']],
['test' => [
@@ -388,6 +401,7 @@ class NavigationManagerTest extends TestCase {
],
'with-multiple' => [
array_merge(
+ ['profile' => $defaults['profile']],
['accessibility_settings' => $defaults['accessibility_settings']],
['settings' => $defaults['settings']],
['test' => [
@@ -429,6 +443,7 @@ class NavigationManagerTest extends TestCase {
],
'admin' => [
array_merge(
+ ['profile' => $defaults['profile']],
$adminSettings,
$apps,
['test' => [
@@ -456,6 +471,7 @@ class NavigationManagerTest extends TestCase {
],
'no name' => [
array_merge(
+ ['profile' => $defaults['profile']],
$adminSettings,
$apps,
['logout' => $defaults['logout']]