From d994a3f94d6b0d7abaa87ab4e2d0943d4fc6ef78 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 2 Jun 2020 07:46:11 +0200 Subject: [PATCH] Test actual request instead of mock --- tests/Omnipay/Common/Message/AbstractRequestTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Omnipay/Common/Message/AbstractRequestTest.php b/tests/Omnipay/Common/Message/AbstractRequestTest.php index f4d751b3..99a1ac65 100644 --- a/tests/Omnipay/Common/Message/AbstractRequestTest.php +++ b/tests/Omnipay/Common/Message/AbstractRequestTest.php @@ -16,7 +16,7 @@ class AbstractRequestTest extends TestCase public function setUp() { - $this->request = m::mock('\Omnipay\Common\Message\AbstractRequest')->makePartial(); + $this->request = new AbstractRequestTest_MockAbstractRequest($this->getHttpClient(), $this->getHttpRequest()); $this->request->initialize(); } @@ -467,6 +467,7 @@ public function testNoCurrencyReturnedIfCurrencyNotSet() public function testSend() { + $this->request = m::mock('\Omnipay\Common\Message\AbstractRequest')->makePartial(); $response = m::mock('\Omnipay\Common\Message\ResponseInterface'); $data = array('request data');