Skip to content

Commit

Permalink
test amountInteger if amount is null
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed May 14, 2018
1 parent cbeecd9 commit 61d8e3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Omnipay/Common/Message/AbstractRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ public function testGetAmountInteger()
$this->assertSame(1366, $this->request->getAmountInteger());
}

public function testGetAmountIntegerNull()
{
$this->assertSame($this->request, $this->request->setAmount(null));
$this->assertSame(null, $this->request->getAmountInteger());
}

public function testSetAmountInteger()
{
$this->assertSame($this->request, $this->request->setAmountInteger(1366));
Expand Down

0 comments on commit 61d8e3c

Please sign in to comment.