mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed the tests [skip ci]
This commit is contained in:
parent
b451e207e2
commit
eedf27f8a5
@ -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);
|
||||
|
@ -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']);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user