/**
  * Saves model data
  *
  * @return bool
  */
 public function save()
 {
     $this->beforeSave($this->isNewItem());
     return CurrencyStorageHelper::updateStorage($this, static::$storage);
 }
 /**
  * @expectedException     \yii\base\InvalidParamException
  */
 public function testUpdateStorageWrongModel()
 {
     CurrencyStorageHelper::updateStorage([]);
 }