Fix tests

This commit is contained in:
James Cole
2019-08-04 11:12:24 +02:00
parent 62b5cf04ad
commit 2147caf3ef
5 changed files with 33 additions and 10 deletions

View File

@@ -64,7 +64,6 @@ class RecurrenceTransformerTest extends TestCase
$budget = $this->getRandomBudget();
$piggy = $this->getRandomPiggyBank();
$bill = $this->getRandomBill();
$foreignCurrency = $this->getDollar();
$ranges = [new Carbon];
$recurrence = $this->getRandomRecurrence();
// mock calls:
@@ -91,7 +90,7 @@ class RecurrenceTransformerTest extends TestCase
$result = $transformer->transform($recurrence);
$this->assertEquals($recurrence->id, $result['id']);
$this->assertEquals('withdrawal', $result['transaction_type']);
//$this->assertEquals('deposit', $result['transaction_type']);
$this->assertEquals(true, $result['apply_rules']);
$this->assertEquals('Rep descr', $result['recurrence_repetitions'][0]['description']);