fix: 去掉费比异常监控重复菜单 #906
@ -53,10 +53,6 @@ class SidebarMenu
|
||||
['prototype-finance-reports', 'profit-report', '公司利润报表', 'request_quote'],
|
||||
['prototype-finance-reports', 'asset-report', '公司资产报表', 'account_balance'],
|
||||
]],
|
||||
['title' => '费比异常数据监控', 'items' => [
|
||||
['fee-ratio-monitoring', 'refund-pending', '退款待确认', 'assignment_return'],
|
||||
['fee-ratio-monitoring', 'overview', '异常数据监控', 'monitor_heart'],
|
||||
]],
|
||||
];
|
||||
|
||||
$visiblePages = self::visiblePages($user);
|
||||
|
||||
@ -314,10 +314,7 @@ class NavigationTest extends FeatureTestCase
|
||||
|
||||
$sidebarGroup = collect(SidebarMenu::groups($this->user))
|
||||
->firstWhere('title', '费比异常数据监控');
|
||||
$this->assertNotNull($sidebarGroup);
|
||||
$this->assertSame('fee-ratio-monitoring', $sidebarGroup['items'][0]['section']);
|
||||
$this->assertSame('refund-pending', $sidebarGroup['items'][0]['page']);
|
||||
$this->assertSame('overview', $sidebarGroup['items'][1]['page']);
|
||||
$this->assertNull($sidebarGroup);
|
||||
|
||||
$this->loginAs()
|
||||
->get(route('business.pages.show', [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user