From 0ef52bf909600ea450f77963611dc7752baed7a9 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 28 Mar 2015 06:59:43 +0100 Subject: [PATCH] Remove recurring transactions [skip ci] --- database/seeds/TestDataSeeder.php | 29 ----------------------------- pu.sh | 2 +- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/database/seeds/TestDataSeeder.php b/database/seeds/TestDataSeeder.php index a9a81bd023..6ab7fad298 100644 --- a/database/seeds/TestDataSeeder.php +++ b/database/seeds/TestDataSeeder.php @@ -90,7 +90,6 @@ class TestDataSeeder extends Seeder $this->createCategories(); $this->createPiggyBanks(); $this->createReminders(); - $this->createRecurringTransactions(); $this->createBills(); $this->createExpenseAccounts(); $this->createRevenueAccounts(); @@ -357,34 +356,6 @@ class TestDataSeeder extends Seeder } - /** - * - */ - public function createRecurringTransactions() - { - // account - $savings = Account::whereName('Savings account')->orderBy('id', 'DESC')->first(); - $user = User::whereEmail('thegrumpydictator@gmail.com')->first(); - - $recurring = PiggyBank::create( - [ - 'account_id' => $savings->id, - 'name' => 'Nieuwe spullen', - 'targetamount' => 1000, - 'startdate' => $this->som, - 'targetdate' => $this->eom, - 'repeats' => 1, - 'rep_length' => 'month', - 'rep_every' => 0, - 'rep_times' => 0, - 'reminder' => 'month', - 'reminder_skip' => 0, - 'remind_me' => 1, - 'order' => 0, - ] - ); - } - /** * */ diff --git a/pu.sh b/pu.sh index aadd2e151f..ad08d5c969 100755 --- a/pu.sh +++ b/pu.sh @@ -7,4 +7,4 @@ if [ ! -f tests/database/db.sqlite ]; then php artisan migrate --seed fi -phpunit \ No newline at end of file +phpunit --verbose