Skip to content

Firefly III: a personal finances manager

New content and a fix for the bill controller.

James Cole4c2938c5cdb7
diff --git a/app/database/seeds/TestContentSeeder.php b/app/database/seeds/TestContentSeeder.php
index 98c41a1a9f..67571e2b07 100644
--- a/app/database/seeds/TestContentSeeder.php
+++ b/app/database/seeds/TestContentSeeder.php
@@ -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]);
diff --git a/tests/functional/BillControllerCest.php b/tests/functional/BillControllerCest.php
index 1b93ca5f97..88a8b571b9 100644
--- a/tests/functional/BillControllerCest.php
+++ b/tests/functional/BillControllerCest.php
@@ -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.');
}