Skip to content

Commit 61d8e3c

Browse files
committed
test amountInteger if amount is null
1 parent cbeecd9 commit 61d8e3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Omnipay/Common/Message/AbstractRequestTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ public function testGetAmountInteger()
199199
$this->assertSame(1366, $this->request->getAmountInteger());
200200
}
201201

202+
public function testGetAmountIntegerNull()
203+
{
204+
$this->assertSame($this->request, $this->request->setAmount(null));
205+
$this->assertSame(null, $this->request->getAmountInteger());
206+
}
207+
202208
public function testSetAmountInteger()
203209
{
204210
$this->assertSame($this->request, $this->request->setAmountInteger(1366));

0 commit comments

Comments
 (0)