We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69d0e99 + d9f5c01 commit b702b42Copy full SHA for b702b42
src/Codeception/Module/Yii2.php
@@ -574,7 +574,7 @@ public function haveRecord($model, $attributes = [])
574
$record->setAttributes($attributes, false);
575
$res = $record->save(false);
576
if (!$res) {
577
- $this->fail("Record $model was not saved");
+ $this->fail("Record $model was not saved: " . \yii\helpers\Json::encode($record->errors));
578
}
579
return $record->primaryKey;
580
0 commit comments