/** * Save into config api endpoint. * * @param $apiEndpoint */ public function _saveApiEndpoint($apiEndpoint) { $this->writer->save(\Dotdigitalgroup\Email\Helper\Config::PATH_FOR_API_ENDPOINT, $apiEndpoint); }
public function testSave() { $this->resource->expects($this->once())->method('saveConfig')->with('path', 'value', ScopeConfigInterface::SCOPE_TYPE_DEFAULT, 0); $this->model->save('path', 'value'); }