From 61d8e3c2d2d4a88b8eba5998ea7a9f25f02bab94 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 14 May 2018 14:26:47 +0200 Subject: [PATCH] test amountInteger if amount is null --- tests/Omnipay/Common/Message/AbstractRequestTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php index abd5e283..f4d751b3 100644 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ b/tests/Omnipay/Common/Message/AbstractRequestTest.php @@ -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));