public function testGetFrontendStoreOrBackendValueBackend() { $scope = 'some-scope'; $scopeValue = 'some-scope-value'; $path = 'test-path'; $value = 'value'; $this->appStateHelper->expects($this->once())->method('isFrontendArea')->willReturn(false); $this->scopeDefiner->expects($this->once())->method('getScope')->willReturn($scope); $this->scopeDefiner->expects($this->once())->method('getScopeValue')->willReturn($scopeValue); $this->appScopeConfig->expects($this->once())->method('getValue')->with($path, $scope, $scopeValue)->willReturn($value); $this->assertEquals($value, $this->scopeConfig->getFrontendStoreOrBackendValue($path)); }
/** * @return bool */ public function isActive() { return $this->scopeConfig->getFrontendStoreOrBackendValue('tobai_geo_store_switcher/general/active'); }