Exemplo n.º 1
0
 /**
  *
  * @param array $attributes
  * @return boolean 
  */
 public function update($attributes = NULL)
 {
     if (CStubActiveRecord::isUnittests()) {
         return CallFactory::call($this, 'update');
     }
     return parent::update($attributes);
 }
Exemplo n.º 2
0
 public function assertUpdates(CActiveRecord $model, array $attrs = null)
 {
     $this->assertTrue($model->update($attrs));
 }