6 declare(strict_types=1);
28 $this->stateMock = $this->getMockBuilder(State::class)
29 ->disableOriginalConstructor()
36 'section1/group2' =>
'no',
40 'section3/group1/field1' =>
'no',
43 'section1/group1/field3' =>
'',
44 'section1/group2/field1' =>
'',
45 'section2/group2/field1' =>
'',
46 'section3/group2' =>
'',
61 $this->stateMock->expects($this->any())
63 ->willReturn($mageMode);
65 $this->assertSame($isHidden, $this->model->isHidden(
$path));
66 $this->assertSame($isDisabled, $this->model->isDisabled(
$path));
testCheckVisibility(string $path, string $mageMode, bool $isHidden, bool $isDisabled)