Skip to content

Commit d994a3f

Browse files
committed
Test actual request instead of mock
1 parent 24ea70a commit d994a3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Omnipay/Common/Message/AbstractRequestTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AbstractRequestTest extends TestCase
1616

1717
public function setUp()
1818
{
19-
$this->request = m::mock('\Omnipay\Common\Message\AbstractRequest')->makePartial();
19+
$this->request = new AbstractRequestTest_MockAbstractRequest($this->getHttpClient(), $this->getHttpRequest());
2020
$this->request->initialize();
2121
}
2222

@@ -467,6 +467,7 @@ public function testNoCurrencyReturnedIfCurrencyNotSet()
467467

468468
public function testSend()
469469
{
470+
$this->request = m::mock('\Omnipay\Common\Message\AbstractRequest')->makePartial();
470471
$response = m::mock('\Omnipay\Common\Message\ResponseInterface');
471472
$data = array('request data');
472473

0 commit comments

Comments
 (0)