mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Fix test that could come up with journals with 0 transactions, and improve test coverage for file routine.
This commit is contained in:
@@ -34,17 +34,7 @@ class RabobankDebitCreditTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertAf()
|
||||
{
|
||||
$converter = new RabobankDebitCredit;
|
||||
$result = $converter->convert('D');
|
||||
$this->assertEquals(-1, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertAnything()
|
||||
public function testConvertAnything(): void
|
||||
{
|
||||
$converter = new RabobankDebitCredit;
|
||||
$result = $converter->convert('9083jkdkj');
|
||||
@@ -54,10 +44,40 @@ class RabobankDebitCreditTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertBij()
|
||||
public function testConvertCredit(): void
|
||||
{
|
||||
$converter = new RabobankDebitCredit;
|
||||
$result = $converter->convert('C');
|
||||
$this->assertEquals(1, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertCreditOld(): void
|
||||
{
|
||||
$converter = new RabobankDebitCredit;
|
||||
$result = $converter->convert('B');
|
||||
$this->assertEquals(1, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertDebit(): void
|
||||
{
|
||||
$converter = new RabobankDebitCredit;
|
||||
$result = $converter->convert('D');
|
||||
$this->assertEquals(-1, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertDebitOld(): void
|
||||
{
|
||||
$converter = new RabobankDebitCredit;
|
||||
$result = $converter->convert('A');
|
||||
$this->assertEquals(-1, $result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user