Remove recurring transactions [skip ci]

This commit is contained in:
James Cole 2015-03-28 06:59:43 +01:00
parent 95e34af6ef
commit 0ef52bf909
2 changed files with 1 additions and 30 deletions

View File

@ -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,
]
);
}
/**
*
*/

2
pu.sh
View File

@ -7,4 +7,4 @@ if [ ! -f tests/database/db.sqlite ]; then
php artisan migrate --seed
fi
phpunit
phpunit --verbose