mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
Code coverage.
This commit is contained in:
parent
72f04aaedc
commit
19c7e08c5d
@ -14,6 +14,7 @@ class Filter
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Save Session::get('start') and Session::get('end') for other methods to use.
|
* Save Session::get('start') and Session::get('end') for other methods to use.
|
||||||
|
* @CodeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
public function setSessionDateRange()
|
public function setSessionDateRange()
|
||||||
{
|
{
|
||||||
@ -45,7 +46,9 @@ class Filter
|
|||||||
public function setSessionRangeValue()
|
public function setSessionRangeValue()
|
||||||
{
|
{
|
||||||
if (!is_null(\Session::get('range'))) {
|
if (!is_null(\Session::get('range'))) {
|
||||||
|
// @CodeCoverageIgnoreStart
|
||||||
$range = \Session::get('range');
|
$range = \Session::get('range');
|
||||||
|
// @CodeCoverageIgnoreEnd
|
||||||
} else {
|
} else {
|
||||||
/** @var \FireflyIII\Shared\Preferences\PreferencesInterface $preferences */
|
/** @var \FireflyIII\Shared\Preferences\PreferencesInterface $preferences */
|
||||||
$preferences = \App::make('FireflyIII\Shared\Preferences\PreferencesInterface');
|
$preferences = \App::make('FireflyIII\Shared\Preferences\PreferencesInterface');
|
||||||
@ -66,6 +69,7 @@ class Filter
|
|||||||
*
|
*
|
||||||
* @return Carbon
|
* @return Carbon
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
|
* @CodeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
protected function updateStartDate($range, Carbon $start)
|
protected function updateStartDate($range, Carbon $start)
|
||||||
{
|
{
|
||||||
@ -100,6 +104,7 @@ class Filter
|
|||||||
*
|
*
|
||||||
* @return Carbon
|
* @return Carbon
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
|
* @CodeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
protected function updateEndDate($range, Carbon $start)
|
protected function updateEndDate($range, Carbon $start)
|
||||||
{
|
{
|
||||||
@ -138,6 +143,7 @@ class Filter
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
|
* @CodeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
protected function periodName($range, Carbon $date)
|
protected function periodName($range, Carbon $date)
|
||||||
{
|
{
|
||||||
|
@ -31,9 +31,9 @@
|
|||||||
@if($what == 'asset')
|
@if($what == 'asset')
|
||||||
{{Form::ffBalance('openingBalance')}}
|
{{Form::ffBalance('openingBalance')}}
|
||||||
{{Form::ffDate('openingBalanceDate', date('Y-m-d'))}}
|
{{Form::ffDate('openingBalanceDate', date('Y-m-d'))}}
|
||||||
@endif
|
|
||||||
{{Form::ffCheckbox('active','1',true)}}
|
|
||||||
{{Form::ffSelect('account_role',Config::get('firefly.accountRoles'))}}
|
{{Form::ffSelect('account_role',Config::get('firefly.accountRoles'))}}
|
||||||
|
@endif
|
||||||
|
{{Form::ffCheckbox('active','1',true)}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user