From 19c7e08c5d5755ff2886d602419f3f90d0068235 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 3 Feb 2015 19:40:13 +0100 Subject: [PATCH] Code coverage. --- app/lib/FireflyIII/Shared/Toolkit/Filter.php | 6 ++++++ app/views/accounts/create.blade.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/lib/FireflyIII/Shared/Toolkit/Filter.php b/app/lib/FireflyIII/Shared/Toolkit/Filter.php index 70f0aef677..7237bb8d4b 100644 --- a/app/lib/FireflyIII/Shared/Toolkit/Filter.php +++ b/app/lib/FireflyIII/Shared/Toolkit/Filter.php @@ -14,6 +14,7 @@ class Filter { /** * Save Session::get('start') and Session::get('end') for other methods to use. + * @CodeCoverageIgnore */ public function setSessionDateRange() { @@ -45,7 +46,9 @@ class Filter public function setSessionRangeValue() { if (!is_null(\Session::get('range'))) { + // @CodeCoverageIgnoreStart $range = \Session::get('range'); + // @CodeCoverageIgnoreEnd } else { /** @var \FireflyIII\Shared\Preferences\PreferencesInterface $preferences */ $preferences = \App::make('FireflyIII\Shared\Preferences\PreferencesInterface'); @@ -66,6 +69,7 @@ class Filter * * @return Carbon * @throws FireflyException + * @CodeCoverageIgnore */ protected function updateStartDate($range, Carbon $start) { @@ -100,6 +104,7 @@ class Filter * * @return Carbon * @throws FireflyException + * @CodeCoverageIgnore */ protected function updateEndDate($range, Carbon $start) { @@ -138,6 +143,7 @@ class Filter * * @return string * @throws FireflyException + * @CodeCoverageIgnore */ protected function periodName($range, Carbon $date) { diff --git a/app/views/accounts/create.blade.php b/app/views/accounts/create.blade.php index b8e6701b05..a0455b2c00 100644 --- a/app/views/accounts/create.blade.php +++ b/app/views/accounts/create.blade.php @@ -31,9 +31,9 @@ @if($what == 'asset') {{Form::ffBalance('openingBalance')}} {{Form::ffDate('openingBalanceDate', date('Y-m-d'))}} - @endif - {{Form::ffCheckbox('active','1',true)}} {{Form::ffSelect('account_role',Config::get('firefly.accountRoles'))}} + @endif + {{Form::ffCheckbox('active','1',true)}}