Improve test coverage.

This commit is contained in:
James Cole
2018-03-03 17:16:47 +01:00
parent 9dc4c50527
commit 7542175258
28 changed files with 414 additions and 98 deletions

View File

@@ -251,6 +251,7 @@ class CurrencyControllerTest extends TestCase
/**
* @covers \FireflyIII\Http\Controllers\CurrencyController::store
* @covers \FireflyIII\Http\Requests\CurrencyFormRequest
*/
public function testStore()
{
@@ -278,6 +279,7 @@ class CurrencyControllerTest extends TestCase
/**
* @covers \FireflyIII\Http\Controllers\CurrencyController::store
* @covers \FireflyIII\Http\Requests\CurrencyFormRequest
*/
public function testStoreNoRights()
{
@@ -305,6 +307,7 @@ class CurrencyControllerTest extends TestCase
/**
* @covers \FireflyIII\Http\Controllers\CurrencyController::update
* @covers \FireflyIII\Http\Requests\CurrencyFormRequest
*/
public function testUpdate()
{
@@ -319,6 +322,7 @@ class CurrencyControllerTest extends TestCase
$this->session(['currencies.edit.uri' => 'http://localhost']);
$data = [
'id' => 2,
'name' => 'XA',
'code' => 'XAX',
'symbol' => 'a',