Skip to content

Commit

Permalink
Test actual request instead of mock
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Jun 2, 2020
1 parent 24ea70a commit d994a3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Omnipay/Common/Message/AbstractRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit d994a3f

Please sign in to comment.