From 289ffc3e95b04f1e724b529c03e634a4167214f5 Mon Sep 17 00:00:00 2001 From: "samir.maksimov" Date: Mon, 12 May 2025 16:45:02 +0200 Subject: [PATCH] CC-2329 Add test for Paypage with zero amount --- test/integration/Resources/PaypageV2Test.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/integration/Resources/PaypageV2Test.php b/test/integration/Resources/PaypageV2Test.php index c583bcb7..2b6b8238 100644 --- a/test/integration/Resources/PaypageV2Test.php +++ b/test/integration/Resources/PaypageV2Test.php @@ -249,6 +249,18 @@ public function createPaypageWithRiskData() $this->assertCreatedPaypage($paypage); } + /** @test + */ + public function createPaypageWithZeroAmount() + { + $unzer = $this->getUnzerObject(); + + $paypage = new Paypage(0, 'EUR', 'preauthorize'); + $unzer->createPaypage($paypage); + + $this->assertCreatedPaypage($paypage); + } + /** * @param Paypage $paypage * @return void