22 $this->_storeManagerMock = $this->createMock(\
Magento\Store\Model\StoreManager::class);
26 'urlBuilder' => $this->createMock(\
Magento\Backend\Model\Url::class),
29 $objectManagerHelper = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
30 $this->_model = $objectManagerHelper->getObject(
39 unset($this->_storeManagerMock);
44 $this->_storeManagerMock->expects($this->once())->method(
'isSingleStoreMode')->will($this->returnValue(
false));
45 $this->assertTrue($this->_model->isDisplayed());
50 $this->_storeManagerMock->expects($this->once())->method(
'isSingleStoreMode')->will($this->returnValue(
true));
51 $this->assertFalse($this->_model->isDisplayed());