Skip to content

Commit

Permalink
feat: testSaveでバリデーションエラー時、バリデーションエラー内容を出力する
Browse files Browse the repository at this point in the history
  • Loading branch information
akagane99 committed Dec 8, 2018
1 parent 6521c87 commit 26e3cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TestSuite/NetCommonsSaveTest.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public function testSave($data) {

//テスト実行
$result = $this->$model->$method($data);
// バリデーションエラー時、出力
if (!empty($this->$model->validationErrors)) {
var_export($this->$model->validationErrors);
}
$this->assertNotEmpty($result);

//idのチェック
Expand Down

0 comments on commit 26e3cc3

Please sign in to comment.