New content and a fix for the bill controller.

This commit is contained in:
James Cole 2014-12-31 08:31:18 +01:00
parent 6d03ddadcc
commit 4c2938c5cd
2 changed files with 17 additions and 1 deletions

View File

@ -263,6 +263,22 @@ class TestContentSeeder extends Seeder
]
);
// bill
$thirdBill = \Bill::create(
[
'user_id' => $user->id,
'name' => 'Something something',
'match' => 'mumble,mumble',
'amount_min' => 500,
'amount_max' => 700,
'date' => '2014-01-01',
'active' => 0,
'automatch' => 1,
'repeat_freq' => 'monthly',
'skip' => 0,
]
);
// create some expense accounts.
$albert = Account::create(['user_id' => $user->id, 'account_type_id' => $expenseType->id, 'name' => 'Albert Heijn', 'active' => 1]);

View File

@ -92,7 +92,7 @@ class BillControllerCest
public function rescanInactive(FunctionalTester $I)
{
$I->wantTo('rescan an inactive bill');
$I->amOnPage('/bills/rescan/2');
$I->amOnPage('/bills/rescan/3');
$I->see('Inactive bills cannot be scanned.');
}