mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Expand tests.
This commit is contained in:
@@ -40,6 +40,8 @@ use Symfony\Component\HttpFoundation\ParameterBag;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* TODO test split transaction.
|
||||
*
|
||||
* Class TransactionTransformerTest
|
||||
*/
|
||||
class TransactionTransformerTest extends TestCase
|
||||
@@ -48,7 +50,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testBasic()
|
||||
{
|
||||
@@ -131,7 +133,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testDeposit()
|
||||
{
|
||||
@@ -214,7 +216,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Deposit cannot have a budget
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testDepositBudget()
|
||||
{
|
||||
@@ -306,7 +308,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal) with a foreign amount.
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testForeignAmount()
|
||||
{
|
||||
@@ -397,7 +399,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal) with a budget
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testJournalBudget()
|
||||
{
|
||||
@@ -494,7 +496,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal) with a category
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testJournalCategory()
|
||||
{
|
||||
@@ -591,7 +593,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (opening balance)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testOpeningBalanceNeg()
|
||||
{
|
||||
@@ -675,7 +677,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (opening balance)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testOpeningBalancePos()
|
||||
{
|
||||
@@ -759,7 +761,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (reconciliation)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testReconciliationNeg()
|
||||
{
|
||||
@@ -843,7 +845,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (reconciliation)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testReconciliationPos()
|
||||
{
|
||||
@@ -927,7 +929,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal) with budget on the transactions.
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testTransactionBudget()
|
||||
{
|
||||
@@ -1026,7 +1028,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal) with a category on the transactions
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testTransactionCategory()
|
||||
{
|
||||
@@ -1124,7 +1126,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (withdrawal) with a description for transactions.
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testTransactionDescription()
|
||||
{
|
||||
@@ -1207,7 +1209,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (transfer)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testTransferOne()
|
||||
{
|
||||
@@ -1290,7 +1292,7 @@ class TransactionTransformerTest extends TestCase
|
||||
* Basic journal (transfer)
|
||||
*
|
||||
* @covers \FireflyIII\Transformers\TransactionTransformer::transform
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function testTransferTwo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user