Skip to content

Firefly III: a personal finances manager

Code coverage.

James Cole19c7e08c5d57
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)}}
</div>
</div>