mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fixed coverage.
This commit is contained in:
		| @@ -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() | ||||
|     { | ||||
|   | ||||
| @@ -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 | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user