From 4c2938c5cdb73472daf6f48b0389c21a346b17f4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 31 Dec 2014 08:31:18 +0100 Subject: [PATCH] New content and a fix for the bill controller. --- app/database/seeds/TestContentSeeder.php | 16 ++++++++++++++++ tests/functional/BillControllerCest.php | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) 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.'); }