Definition at line 10 of file TabTest.php.
◆ setUp()
Definition at line 22 of file TabTest.php.
24 $this->_iteratorMock = $this->createMock(\
Magento\Config\Model\Config\Structure\Element\Iterator\Field::class);
26 $this->_model = (
new ObjectManager($this))->getObject(
27 \
Magento\Config\Model\Config\Structure\Element\Tab::class,
28 [
'childrenIterator' => $this->_iteratorMock]
◆ tearDown()
Definition at line 32 of file TabTest.php.
35 unset($this->_iteratorMock);
◆ testIsVisibleOnlyChecksPresenceOfChildren()
testIsVisibleOnlyChecksPresenceOfChildren |
( |
| ) |
|
Definition at line 38 of file TabTest.php.
40 $this->_model->setData([
'showInStore' => 0,
'showInWebsite' => 0,
'showInDefault' => 0],
'store');
41 $this->_iteratorMock->expects($this->once())->method(
'current')->will($this->returnValue(
true));
42 $this->_iteratorMock->expects($this->once())->method(
'valid')->will($this->returnValue(
true));
43 $this->assertTrue($this->_model->isVisible());
◆ $_iteratorMock
◆ $_model
The documentation for this class was generated from the following file:
- vendor/magento/module-config/Test/Unit/Model/Config/Structure/Element/TabTest.php