Fix test coverage

This commit is contained in:
James Cole 2017-09-03 10:09:27 +02:00
parent 2a2a18f378
commit 523824225e
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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()
{ {