mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 10:16:49 +00:00
New content and a fix for the bill controller.
This commit is contained in:
@@ -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.
|
// create some expense accounts.
|
||||||
$albert = Account::create(['user_id' => $user->id, 'account_type_id' => $expenseType->id, 'name' => 'Albert Heijn', 'active' => 1]);
|
$albert = Account::create(['user_id' => $user->id, 'account_type_id' => $expenseType->id, 'name' => 'Albert Heijn', 'active' => 1]);
|
||||||
|
@@ -92,7 +92,7 @@ class BillControllerCest
|
|||||||
public function rescanInactive(FunctionalTester $I)
|
public function rescanInactive(FunctionalTester $I)
|
||||||
{
|
{
|
||||||
$I->wantTo('rescan an inactive bill');
|
$I->wantTo('rescan an inactive bill');
|
||||||
$I->amOnPage('/bills/rescan/2');
|
$I->amOnPage('/bills/rescan/3');
|
||||||
$I->see('Inactive bills cannot be scanned.');
|
$I->see('Inactive bills cannot be scanned.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user