/** * Save config value to storage * * @param string $path * @param string $value * @param string $scope * @param int $scopeId * @return void */ public function save($path, $value, $scope = \Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT, $scopeId = 0) { $this->_resource->saveConfig(rtrim($path, '/'), $value, $scope, $scopeId); }
public function testSave() { $this->resource->expects($this->once())->method('saveConfig')->with('path', 'value', ScopeConfigInterface::SCOPE_TYPE_DEFAULT, 0); $this->model->save('path', 'value'); }
/** * Save config value to storage * * @param string $path * @param string $value * @param string $scope * @param int $scopeId * @return void */ public function save($path, $value, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0) { $this->_resource->saveConfig(rtrim($path, '/'), $value, $scope, $scopeId); }