/**
  * Removes the model data from storage
  *
  * @return bool
  */
 public function delete()
 {
     $result = false;
     if (true === $this->beforeDelete()) {
         $result = CurrencyStorageHelper::removeFromStorage($this, static::$storage);
         $this->afterDelete();
     }
     return $result;
 }
 /**
  * @expectedException     \yii\base\InvalidParamException
  */
 public function testRemoveFromStorageWrongModel()
 {
     CurrencyStorageHelper::removeFromStorage('im a Currency model, btc!');
 }