. */ declare(strict_types=1); namespace Tests\Unit\Import\Converter; use FireflyIII\Import\Converter\RabobankDebitCredit; use Tests\TestCase; /** * Class RabobankDebitCredit */ class RabobankDebitCreditTest extends TestCase { /** * @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert() */ public function testConvertAnything(): void { $converter = new RabobankDebitCredit; $result = $converter->convert('9083jkdkj'); $this->assertEquals(1, $result); } /** * @covers \FireflyIII\Import\Converter\RabobankDebitCredit::convert() */ 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); } }