Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 public function testSave()
 {
     $this->resource->expects($this->once())->method('saveConfig')->with('path', 'value', ScopeConfigInterface::SCOPE_TYPE_DEFAULT, 0);
     $this->model->save('path', 'value');
 }
Пример #3
0
 /**
  * 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);
 }