Skip to content

Commit

Permalink
Merge pull request #221 from thephpleague/feat-testactualrequest
Browse files Browse the repository at this point in the history
Test actual request instead of mock
  • Loading branch information
barryvdh committed Jun 2, 2020
2 parents 24148b7 + d994a3f commit d6a1bed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Omnipay/Common/Message/AbstractRequestTest.php
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 d6a1bed

Please sign in to comment.