From dd6c34499ca5fffd778d62f391706e710ff5b193 Mon Sep 17 00:00:00 2001 From: Andrea Pollastri Date: Mon, 13 Nov 2023 16:32:15 +0100 Subject: [PATCH] Wip --- tests/DatiPagamentoTest.php | 1 - tests/DatiRiepilogoTest.php | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tests/DatiRiepilogoTest.php diff --git a/tests/DatiPagamentoTest.php b/tests/DatiPagamentoTest.php index 2e80132..30e884d 100644 --- a/tests/DatiPagamentoTest.php +++ b/tests/DatiPagamentoTest.php @@ -6,7 +6,6 @@ use Axiostudio\FatturaElettronica\Models\DatiPagamento; use Axiostudio\FatturaElettronica\Settings; use PHPUnit\Framework\TestCase; -use Symfony\Component\Validator\Validation; class DatiPagamentoTest extends TestCase { diff --git a/tests/DatiRiepilogoTest.php b/tests/DatiRiepilogoTest.php new file mode 100644 index 0000000..0908e07 --- /dev/null +++ b/tests/DatiRiepilogoTest.php @@ -0,0 +1,24 @@ +assertInstanceOf(DatiRiepilogo::class, $datiRiepilogo); + $this->assertEquals($imponibileImporto, $datiRiepilogo->ImponibileImporto); + $this->assertEquals($aliquotaIVA, $datiRiepilogo->AliquotaIVA); + $this->assertEquals($natura, $datiRiepilogo->Natura); + $this->assertEquals($imponibileImporto * $aliquotaIVA / 100, $datiRiepilogo->Imposta); + } +}