mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 05:03:13 +00:00
Fix small issue with piggy banks.
This commit is contained in:
@@ -17,6 +17,9 @@ use FireflyIII\Models\TransactionType;
|
||||
*/
|
||||
class TransactionTypeTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @covers \FireflyIII\Models\TransactionType::isDeposit
|
||||
*/
|
||||
public function testIsDeposit()
|
||||
{
|
||||
|
||||
@@ -24,18 +27,27 @@ class TransactionTypeTest extends TestCase
|
||||
$this->assertTrue($transactionType->isDeposit());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Models\TransactionType::isOpeningBalance
|
||||
*/
|
||||
public function testIsOpeningBalance()
|
||||
{
|
||||
$transactionType = TransactionType::whereType(TransactionType::OPENING_BALANCE)->first();
|
||||
$this->assertTrue($transactionType->isOpeningBalance());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Models\TransactionType::isTransfer
|
||||
*/
|
||||
public function testIsTransfer()
|
||||
{
|
||||
$transactionType = TransactionType::whereType(TransactionType::TRANSFER)->first();
|
||||
$this->assertTrue($transactionType->isTransfer());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Models\TransactionType::isWithdrawal
|
||||
*/
|
||||
public function testIsWithdrawal()
|
||||
{
|
||||
$transactionType = TransactionType::whereType(TransactionType::WITHDRAWAL)->first();
|
||||
|
||||
Reference in New Issue
Block a user