Skip to content

Commit 289ffc3

Browse files
committed
CC-2329 Add test for Paypage with zero amount
1 parent da2b111 commit 289ffc3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/integration/Resources/PaypageV2Test.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,18 @@ public function createPaypageWithRiskData()
249249
$this->assertCreatedPaypage($paypage);
250250
}
251251

252+
/** @test
253+
*/
254+
public function createPaypageWithZeroAmount()
255+
{
256+
$unzer = $this->getUnzerObject();
257+
258+
$paypage = new Paypage(0, 'EUR', 'preauthorize');
259+
$unzer->createPaypage($paypage);
260+
261+
$this->assertCreatedPaypage($paypage);
262+
}
263+
252264
/**
253265
* @param Paypage $paypage
254266
* @return void

0 commit comments

Comments
 (0)