Code for upgrade of various libraries.

This commit is contained in:
James Cole
2019-03-02 21:18:26 +01:00
parent 48219c9af3
commit 4ca60ca92a
11 changed files with 45 additions and 45 deletions

View File

@@ -96,7 +96,7 @@ class RecurrenceFactoryTest extends TestCase
$data = [
'recurrence' => [
'type' => 'withdrawal',
'first_date' => Carbon::create()->addDay(),
'first_date' => Carbon::now()->addDay(),
'repetitions' => 0,
'title' => 'Test recurrence' . random_int(1, 100000),
'description' => 'Description thing',
@@ -190,7 +190,7 @@ class RecurrenceFactoryTest extends TestCase
$data = [
'recurrence' => [
'type' => 'deposit',
'first_date' => Carbon::create()->addDay(),
'first_date' => Carbon::now()->addDay(),
'repetitions' => 0,
'title' => 'Test recurrence' . random_int(1, 100000),
'description' => 'Description thing',
@@ -286,7 +286,7 @@ class RecurrenceFactoryTest extends TestCase
$data = [
'recurrence' => [
'type' => 'withdrawal',
'first_date' => Carbon::create()->addDay(),
'first_date' => Carbon::now()->addDay(),
'repetitions' => 0,
'title' => 'Test recurrence' . random_int(1, 100000),
'description' => 'Description thing',
@@ -380,7 +380,7 @@ class RecurrenceFactoryTest extends TestCase
$data = [
'recurrence' => [
'type' => 'withdrawal',
'first_date' => Carbon::create()->addDay(),
'first_date' => Carbon::now()->addDay(),
'repetitions' => 0,
'title' => 'Test recurrence' . random_int(1, 100000),
'description' => 'Description thing',
@@ -474,7 +474,7 @@ class RecurrenceFactoryTest extends TestCase
$data = [
'recurrence' => [
'type' => 'transfer',
'first_date' => Carbon::create()->addDay(),
'first_date' => Carbon::now()->addDay(),
'repetitions' => 0,
'title' => 'Test recurrence' . random_int(1, 100000),
'description' => 'Description thing',

View File

@@ -61,8 +61,8 @@ class MonthReportGeneratorTest extends TestCase
/** @var Account $account */
$account = $this->user()->accounts()->where('account_type_id', 3)->first();
$date = new Carbon;
$start = Carbon::create()->startOfMonth();
$end = Carbon::create()->endOfMonth();
$start = Carbon::now()->startOfMonth();
$end = Carbon::now()->endOfMonth();
$generator = new MonthReportGenerator();
$generator->setStartDate($start);
$generator->setEndDate($end);
@@ -103,8 +103,8 @@ class MonthReportGeneratorTest extends TestCase
/** @var Account $account */
$account = $this->user()->accounts()->where('account_type_id', 3)->first();
$date = new Carbon;
$start = Carbon::create()->startOfMonth();
$end = Carbon::create()->endOfMonth();
$start = Carbon::now()->startOfMonth();
$end = Carbon::now()->endOfMonth();
$generator = new MonthReportGenerator();
$generator->setStartDate($start);
$generator->setEndDate($end);
@@ -143,8 +143,8 @@ class MonthReportGeneratorTest extends TestCase
/** @var Account $account */
$account = $this->user()->accounts()->where('account_type_id', 3)->first();
$date = new Carbon;
$start = Carbon::create()->startOfMonth();
$end = Carbon::create()->endOfMonth();
$start = Carbon::now()->startOfMonth();
$end = Carbon::now()->endOfMonth();
$generator = new MonthReportGenerator();
$generator->setStartDate($start);
$generator->setEndDate($end);
@@ -190,8 +190,8 @@ class MonthReportGeneratorTest extends TestCase
/** @var Account $account */
$account = $this->user()->accounts()->where('account_type_id', 3)->first();
$date = new Carbon;
$start = Carbon::create()->startOfMonth();
$end = Carbon::create()->endOfMonth();
$start = Carbon::now()->startOfMonth();
$end = Carbon::now()->endOfMonth();
$generator = new MonthReportGenerator();
$generator->setStartDate($start);
$generator->setEndDate($end);

View File

@@ -603,7 +603,7 @@ class ImportArrayStorageTest extends TestCase
return
[
'type' => 'transfer',
'date' => Carbon::create()->format('Y-m-d'),
'date' => Carbon::now()->format('Y-m-d'),
'tags' => '',
'user' => $this->user()->id,
@@ -652,7 +652,7 @@ class ImportArrayStorageTest extends TestCase
return
[
'type' => 'withdrawal',
'date' => Carbon::create()->format('Y-m-d'),
'date' => Carbon::now()->format('Y-m-d'),
'tags' => '',
'user' => $this->user()->id,