mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed coverage.
This commit is contained in:
parent
d8de90d6f3
commit
41e20664de
@ -72,6 +72,7 @@ class ProfileControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
|
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
|
||||||
|
* @covers FireflyIII\Http\Controllers\ProfileController::validatePassword
|
||||||
*/
|
*/
|
||||||
public function testPostChangePassword()
|
public function testPostChangePassword()
|
||||||
{
|
{
|
||||||
@ -97,6 +98,7 @@ class ProfileControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
|
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
|
||||||
|
* @covers FireflyIII\Http\Controllers\ProfileController::validatePassword
|
||||||
*/
|
*/
|
||||||
public function testPostChangePasswordInvalidCurrent()
|
public function testPostChangePasswordInvalidCurrent()
|
||||||
{
|
{
|
||||||
@ -122,6 +124,7 @@ class ProfileControllerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
|
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
|
||||||
|
* @covers FireflyIII\Http\Controllers\ProfileController::validatePassword
|
||||||
*/
|
*/
|
||||||
public function testPostChangePasswordNoNewPassword()
|
public function testPostChangePasswordNoNewPassword()
|
||||||
{
|
{
|
||||||
|
@ -145,6 +145,29 @@ class PiggyBankRepositoryTest extends TestCase
|
|||||||
$this->assertEquals(1, $piggyBank->id);
|
$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
|
* @covers FireflyIII\Repositories\PiggyBank\PiggyBankRepository::update
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user