mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 07:33:06 -06:00
Fix test coverage
This commit is contained in:
parent
2a2a18f378
commit
523824225e
@ -373,7 +373,7 @@ class BudgetControllerTest extends TestCase
|
|||||||
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
|
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
|
||||||
$repository->shouldReceive('setAvailableBudget');
|
$repository->shouldReceive('setAvailableBudget');
|
||||||
|
|
||||||
$data = ['amount' => '200',];
|
$data = ['amount' => '200','start' => '2017-01-01','end' => '2017-01-31'];
|
||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$response = $this->post(route('budgets.income.post'), $data);
|
$response = $this->post(route('budgets.income.post'), $data);
|
||||||
$response->assertStatus(302);
|
$response->assertStatus(302);
|
||||||
|
@ -28,6 +28,7 @@ class HelpControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
||||||
|
* @covers \FireflyIII\Http\Controllers\HelpController::getHelpText
|
||||||
* @covers \FireflyIII\Http\Controllers\HelpController::__construct
|
* @covers \FireflyIII\Http\Controllers\HelpController::__construct
|
||||||
*/
|
*/
|
||||||
public function testShow()
|
public function testShow()
|
||||||
@ -46,6 +47,7 @@ class HelpControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
||||||
|
* @covers \FireflyIII\Http\Controllers\HelpController::getHelpText
|
||||||
*/
|
*/
|
||||||
public function testShowBackupFromCache()
|
public function testShowBackupFromCache()
|
||||||
{
|
{
|
||||||
@ -74,6 +76,7 @@ class HelpControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
||||||
|
* @covers \FireflyIII\Http\Controllers\HelpController::getHelpText
|
||||||
*/
|
*/
|
||||||
public function testShowBackupFromGithub()
|
public function testShowBackupFromGithub()
|
||||||
{
|
{
|
||||||
@ -102,6 +105,7 @@ class HelpControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
||||||
|
* @covers \FireflyIII\Http\Controllers\HelpController::getHelpText
|
||||||
*/
|
*/
|
||||||
public function testShowCached()
|
public function testShowCached()
|
||||||
{
|
{
|
||||||
@ -118,6 +122,7 @@ class HelpControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
* @covers \FireflyIII\Http\Controllers\HelpController::show
|
||||||
|
* @covers \FireflyIII\Http\Controllers\HelpController::getHelpText
|
||||||
*/
|
*/
|
||||||
public function testShowNoRoute()
|
public function testShowNoRoute()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user