Skip to content
Permalink
Browse files

add missing params for parent call

  • Loading branch information...
dereuromark committed Sep 10, 2013
1 parent e77a751 commit beff12d8a55d74fd24719c47897f673c9e1c2cae
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
@@ -112,7 +112,7 @@ public function afterFind(Model $model, $results, $primary = false) {
public function beforeSave(Model $model, $options = array()) {
$settings = $this->settings[$model->alias];
if (!isset($settings['beforeSave']) || $settings['beforeSave'] === 'off') {
return parent::beforeSave($model);
return parent::beforeSave($model, $options);
}
switch ($settings['beforeSave']) {
case 'on':
@@ -136,7 +136,7 @@ public function beforeSave(Model $model, $options = array()) {
public function afterSave(Model $model, $created, $options = array()) {
$settings = $this->settings[$model->alias];
if (!isset($settings['afterSave']) || $settings['afterSave'] === 'off') {
return parent::afterSave($model, $created);
return parent::afterSave($model, $created, $options);
}
$string = 'modified after';
if ($created) {
@@ -168,7 +168,7 @@ public function afterSave(Model $model, $created, $options = array()) {
public function beforeValidate(Model $model, $options = array()) {
$settings = $this->settings[$model->alias];
if (!isset($settings['validate']) || $settings['validate'] === 'off') {
return parent::beforeValidate($model);
return parent::beforeValidate($model, $options);
}
switch ($settings['validate']) {
case 'on':

0 comments on commit beff12d

Please sign in to comment.
You can’t perform that action at this time.