feat: 新增顾家和索菲亚过账菜单 (#1035)
This commit is contained in:
parent
0cafb30404
commit
dcd7ea8b49
@ -719,7 +719,10 @@ $navigation = [
|
||||
'slug' => 'posting-data',
|
||||
'title' => '过账数据',
|
||||
'icon' => 'post_add',
|
||||
'pages' => [],
|
||||
'pages' => [
|
||||
['slug' => 'kuka-posting', 'title' => '顾家过账'],
|
||||
['slug' => 'suofeiya-posting', 'title' => '索菲亚过账'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'slug' => 'negative-alerts',
|
||||
|
||||
@ -613,7 +613,14 @@ class NavigationTest extends FeatureTestCase
|
||||
$postingIndex = array_search('posting-data', $slugs, true);
|
||||
$this->assertSame($receivablesIndex + 1, $postingIndex);
|
||||
$this->assertSame('过账数据', $navigation[$postingIndex]['title']);
|
||||
$this->assertSame([], $navigation[$postingIndex]['pages']);
|
||||
$this->assertSame(
|
||||
['kuka-posting', 'suofeiya-posting'],
|
||||
array_column($navigation[$postingIndex]['pages'], 'slug')
|
||||
);
|
||||
$this->assertSame(
|
||||
['顾家过账', '索菲亚过账'],
|
||||
array_column($navigation[$postingIndex]['pages'], 'title')
|
||||
);
|
||||
$this->assertSame(
|
||||
['after-sales-expenses', 'promotion-expenses'],
|
||||
array_column($orderData['pages'][0]['tabs'], 'slug')
|
||||
|
||||
@ -151,7 +151,14 @@ class UserPermissionsTest extends FeatureTestCase
|
||||
|
||||
$this->assertContains('posting-data', $allowed);
|
||||
$this->assertSame(['store-receivables', 'posting-data'], array_column($navigation, 'slug'));
|
||||
$this->assertSame([], $navigation[1]['pages']);
|
||||
$this->assertSame(
|
||||
['kuka-posting', 'suofeiya-posting'],
|
||||
array_column($navigation[1]['pages'], 'slug')
|
||||
);
|
||||
$this->assertSame(
|
||||
['顾家过账', '索菲亚过账'],
|
||||
array_column($navigation[1]['pages'], 'title')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user