Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed coverage.
James Cole41e20664dea7
diff --git a/tests/controllers/ProfileControllerTest.php b/tests/controllers/ProfileControllerTest.phpindex 7d683bf344..7f76dec19b 100644--- a/tests/controllers/ProfileControllerTest.php+++ b/tests/controllers/ProfileControllerTest.php@@ -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(){diff --git a/tests/repositories/PiggyBankRepositoryTest.php b/tests/repositories/PiggyBankRepositoryTest.phpindex e9d2f35569..79fd026f59 100644--- a/tests/repositories/PiggyBankRepositoryTest.php+++ b/tests/repositories/PiggyBankRepositoryTest.php@@ -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*/