parent
dec5e0d9e5
commit
cf52eadbf9
@ -13,7 +13,9 @@ return [
|
||||
'page_viewers' => [
|
||||
'financial-operations/labor-expenses' => [
|
||||
'晨曦',
|
||||
'Chenxi',
|
||||
'江陵',
|
||||
'Jiangling',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@ -13,11 +13,15 @@ class LaborExpensePageAccessTest extends FeatureTestCase
|
||||
public function test_labor_expense_page_is_visible_only_to_the_named_accounts(): void
|
||||
{
|
||||
$chenxi = $this->account('晨曦');
|
||||
$chenxiEnglish = $this->account('Chenxi');
|
||||
$jiangling = $this->account('江陵');
|
||||
$jianglingEnglish = $this->account('Jiangling');
|
||||
$other = $this->account('其他财务');
|
||||
|
||||
$this->assertTrue($this->pageIsVisible($chenxi));
|
||||
$this->assertTrue($this->pageIsVisible($chenxiEnglish));
|
||||
$this->assertTrue($this->pageIsVisible($jiangling));
|
||||
$this->assertTrue($this->pageIsVisible($jianglingEnglish));
|
||||
$this->assertFalse($this->pageIsVisible($other));
|
||||
$this->assertFalse($this->pageIsVisible($this->user));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user