Fixed coverage.

This commit is contained in:
James Cole 2015-05-23 21:18:20 +02:00
parent d8de90d6f3
commit 41e20664de
2 changed files with 26 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class ProfileControllerTest extends TestCase
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
* @covers FireflyIII\Http\Controllers\ProfileController::validatePassword
*/
public function testPostChangePassword()
{
@ -97,6 +98,7 @@ class ProfileControllerTest extends TestCase
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
* @covers FireflyIII\Http\Controllers\ProfileController::validatePassword
*/
public function testPostChangePasswordInvalidCurrent()
{
@ -122,6 +124,7 @@ class ProfileControllerTest extends TestCase
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
* @covers FireflyIII\Http\Controllers\ProfileController::validatePassword
*/
public function testPostChangePasswordNoNewPassword()
{

View File

@ -145,6 +145,29 @@ class PiggyBankRepositoryTest extends TestCase
$this->assertEquals(1, $piggyBank->id);
}
/**
* @covers FireflyIII\Repositories\PiggyBank\PiggyBankRepository::store
*/
public function testStoreRedirect()
{
$account = FactoryMuffin::create('FireflyIII\Models\Account');
$data = [
'remind_me' => 1,
'account_id' => $account->id,
'name' => 'Some piggy',
'targetamount' => 100,
'create_another' => 1,
'reminder_skip' => 0,
'order' => 1,
];
$piggyBank = $this->object->store($data);
$this->assertEquals(1, $piggyBank->id);
}
/**
* @covers FireflyIII\Repositories\PiggyBank\PiggyBankRepository::update
*/