mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-02 02:18:20 +00:00
Fixed tests.
This commit is contained in:
@@ -313,7 +313,7 @@ class GoogleChartControllerTest extends TestCase
|
|||||||
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
|
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
|
||||||
|
|
||||||
// expect!
|
// expect!
|
||||||
$repository->shouldReceive('incomeByPeriod')->andReturn($journals);
|
$repository->shouldReceive('incomeInPeriod')->andReturn($journals);
|
||||||
$repository->shouldReceive('journalsByExpenseAccount')->andReturn($journals);
|
$repository->shouldReceive('journalsByExpenseAccount')->andReturn($journals);
|
||||||
Preferences::shouldReceive('get')->withArgs(['showSharedReports', false])->once()->andReturn($preference);
|
Preferences::shouldReceive('get')->withArgs(['showSharedReports', false])->once()->andReturn($preference);
|
||||||
|
|
||||||
@@ -342,7 +342,7 @@ class GoogleChartControllerTest extends TestCase
|
|||||||
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
|
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
|
||||||
|
|
||||||
// expect!
|
// expect!
|
||||||
$repository->shouldReceive('incomeByPeriod')->andReturn($journals);
|
$repository->shouldReceive('incomeInPeriod')->andReturn($journals);
|
||||||
$repository->shouldReceive('journalsByExpenseAccount')->andReturn($journals);
|
$repository->shouldReceive('journalsByExpenseAccount')->andReturn($journals);
|
||||||
Preferences::shouldReceive('get')->withArgs(['showSharedReports', false])->once()->andReturn($preference);
|
Preferences::shouldReceive('get')->withArgs(['showSharedReports', false])->once()->andReturn($preference);
|
||||||
|
|
||||||
|
@@ -97,7 +97,7 @@ class JsonControllerTest extends TestCase
|
|||||||
$this->be($user);
|
$this->be($user);
|
||||||
|
|
||||||
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
|
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
|
||||||
$repository->shouldReceive('incomeByPeriod')->andReturn(new Collection);
|
$repository->shouldReceive('incomeInPeriod')->andReturn(new Collection);
|
||||||
Amount::shouldReceive('format')->andReturn('xx');
|
Amount::shouldReceive('format')->andReturn('xx');
|
||||||
Amount::shouldReceive('getCurrencyCode')->andReturn('X');
|
Amount::shouldReceive('getCurrencyCode')->andReturn('X');
|
||||||
|
|
||||||
@@ -184,8 +184,8 @@ class JsonControllerTest extends TestCase
|
|||||||
$user = FactoryMuffin::create('FireflyIII\User');
|
$user = FactoryMuffin::create('FireflyIII\User');
|
||||||
$this->be($user);
|
$this->be($user);
|
||||||
|
|
||||||
Preferences::shouldReceive('get')->withArgs(['showSharedReports', false])->andReturn($pref);
|
Preferences::shouldReceive('get')->withArgs(['includeShared', false])->andReturn($pref);
|
||||||
Preferences::shouldReceive('set')->withArgs(['showSharedReports', true]);
|
Preferences::shouldReceive('set')->withArgs(['includeShared', true]);
|
||||||
|
|
||||||
// language preference:
|
// language preference:
|
||||||
$language = FactoryMuffin::create('FireflyIII\Models\Preference');
|
$language = FactoryMuffin::create('FireflyIII\Models\Preference');
|
||||||
|
@@ -61,7 +61,7 @@ class ReportQueryTest extends TestCase
|
|||||||
$this->markTestIncomplete();
|
$this->markTestIncomplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIncomeByPeriod()
|
public function testIncomeInPeriod()
|
||||||
{
|
{
|
||||||
$this->markTestIncomplete();
|
$this->markTestIncomplete();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user