Skip to content

Commit

Permalink
Merge pull request #186 from getbread/set-default-client-automated-test
Browse files Browse the repository at this point in the history
Added default client for Bread automated extension testing
  • Loading branch information
KiprotichMaritim authored Feb 14, 2023
2 parents 74c9fd6 + c5ceafc commit 291c677
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,12 @@ public function getApiVersion($storeCode = null, $store = \Magento\Store\Model\S
* @return string
*/
public function getConfigClient($storeCode = null, $store = \Magento\Store\Model\ScopeInterface::SCOPE_STORE) {
return strtoupper($this->scopeConfig->getValue(self::XML_CONFIG_CLIENT, $store, $storeCode));
$configClient = $this->scopeConfig->getValue(self::XML_CONFIG_CLIENT, $store, $storeCode);
if(is_null($configClient)) {
return strtoupper('core');
} else {
return strtoupper($configClient);
}
}

/**
Expand Down

0 comments on commit 291c677

Please sign in to comment.