Fixed the tests [skip ci]

This commit is contained in:
James Cole 2014-12-30 15:24:10 +01:00
parent b451e207e2
commit eedf27f8a5
2 changed files with 3 additions and 2 deletions

View File

@ -321,6 +321,7 @@ class PiggyBankController extends BaseController
$data['order'] = 0;
$data['remind_me'] = isset($data['remind_me']) ? 1 : 0;
$data['user_id'] = Auth::user()->id;
$data['repeats'] = 0;
// always validate:
$messages = $this->_repository->validate($data);

View File

@ -234,7 +234,7 @@ class PiggyBankControllerCest
'post_submit_action' => 'store',
'targetamount' => 1000]
);
$I->see('Name is too short');
$I->see('The name field is required.');
}
/**
@ -324,7 +324,7 @@ class PiggyBankControllerCest
'post_submit_action' => 'update',
]
);
$I->see('Name is too short');
$I->see('The name field is required.');
$I->seeInDatabase('piggy_banks', ['name' => 'New camera']);
}