diff --git a/lib/Cake/Test/Case/Model/BehaviorCollectionTest.php b/lib/Cake/Test/Case/Model/BehaviorCollectionTest.php index b85b61926..5454556a5 100644 --- a/lib/Cake/Test/Case/Model/BehaviorCollectionTest.php +++ b/lib/Cake/Test/Case/Model/BehaviorCollectionTest.php @@ -112,7 +112,7 @@ class TestBehavior extends ModelBehavior { 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 @@ class TestBehavior extends ModelBehavior { 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 @@ class TestBehavior extends ModelBehavior { 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':