25 $this->_requestMock = $this->createMock(\
Magento\Framework\
App\RequestInterface::class);
28 \
Magento\Config\Model\Config\ScopeDefiner::class,
29 [
'request' => $this->_requestMock]
40 $this->_requestMock->expects(
45 $this->returnValueMap([[
'website',
null,
'someWebsite'], [
'store',
null,
'someStore']])
47 $this->assertEquals(\
Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->_model->getScope());
52 $this->_requestMock->expects(
57 $this->returnValueMap([[
'website',
null,
'someWebsite'], [
'store',
null,
null]])
59 $this->assertEquals(\
Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE, $this->_model->getScope());
testGetScopeReturnsDefaultScopeIfNoScopeDataIsSpecified()
testGetScopeReturnsWebsiteScopeIfWebsiteIsSpecified()
testGetScopeReturnsStoreScopeIfStoreIsSpecified()