mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-13 00:42:08 +08:00
Add grouped navigation tabs legacy handler
This commit is contained in:
parent
0b575752b5
commit
bab8ce3390
2 changed files with 73 additions and 0 deletions
|
@ -103,4 +103,63 @@ final class NavbarTest extends TestCase
|
|||
$this->navbar->getNonGroupedNavTabs()
|
||||
);
|
||||
}
|
||||
|
||||
public function testGroupNavTabs(): void
|
||||
{
|
||||
$expected = [
|
||||
'Sales' => [
|
||||
'modules' => [
|
||||
'Home' => 'Home',
|
||||
'Accounts' => 'Accounts',
|
||||
'Contacts' => 'Contacts',
|
||||
'Opportunities' => 'Opportunities',
|
||||
'Leads' => 'Leads'
|
||||
]
|
||||
],
|
||||
'Marketing' => [
|
||||
'modules' => [
|
||||
'Home' => 'Home',
|
||||
'Accounts' => 'Accounts',
|
||||
'Contacts' => 'Contacts',
|
||||
'Leads' => 'Leads',
|
||||
'Campaigns' => 'Campaigns',
|
||||
'Prospects' => 'Targets',
|
||||
'ProspectLists' => 'Targets - Lists'
|
||||
]
|
||||
],
|
||||
'Support' => [
|
||||
'modules' => [
|
||||
'Home' => 'Home',
|
||||
'Accounts' => 'Accounts',
|
||||
'Contacts' => 'Contacts',
|
||||
'Cases' => 'Cases',
|
||||
'Bugs' => 'Bugs'
|
||||
]
|
||||
],
|
||||
'Activities' => [
|
||||
'modules' => [
|
||||
'Home' => 'Home',
|
||||
'Calendar' => 'Calendar',
|
||||
'Calls' => 'Calls',
|
||||
'Meetings' => 'Meetings',
|
||||
'Emails' => 'Emails',
|
||||
'Tasks' => 'Tasks',
|
||||
'Notes' => 'Notes'
|
||||
]
|
||||
],
|
||||
'Collaboration' => [
|
||||
'modules' => [
|
||||
'Home' => 'Home',
|
||||
'Emails' => 'Emails',
|
||||
'Documents' => 'Documents',
|
||||
'Project' => 'Projects'
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
$this->assertSame(
|
||||
$expected,
|
||||
$this->navbar->getGroupedNavTabs()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue