Remove unused code.

This commit is contained in:
James Cole
2019-09-04 16:07:44 +02:00
parent bbcb492075
commit f52584d46b
5 changed files with 92 additions and 204 deletions

View File

@@ -24,7 +24,6 @@ namespace Tests\Feature\Controllers\Report;
use Carbon\Carbon;
use FireflyIII\Helpers\Fiscal\FiscalHelperInterface;
use FireflyIII\Helpers\Report\BalanceReportHelperInterface;
use Log;
use Preferences;
use Tests\TestCase;
@@ -54,14 +53,12 @@ class BalanceControllerTest extends TestCase
public function testGeneral(): void
{
$this->mockDefaultSession();
$balance = $this->mock(BalanceReportHelperInterface::class);
$fiscalHelper = $this->mock(FiscalHelperInterface::class);
$date = new Carbon;
Preferences::shouldReceive('lastActivity')->atLeast()->once()->andReturn('md512345');
$fiscalHelper->shouldReceive('endOfFiscalYear')->atLeast()->once()->andReturn($date);
$fiscalHelper->shouldReceive('startOfFiscalYear')->atLeast()->once()->andReturn($date);
$balance->shouldReceive('getBalanceReport')->andReturn([]);
$this->be($this->user());
$response = $this->get(route('report-data.balance.general', ['1', '20120101', '20120131']));