Skip to content

Commit a88b94d

Browse files
authored
Merge pull request #77 from delatbabel/fix-pr-tests
Fix broken test case
2 parents a19747c + 543c2c7 commit a88b94d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ php:
55
- 5.4
66
- 5.5
77
- 5.6
8-
- hhvm
98

109
before_script:
1110
- composer install -n --dev --prefer-source

tests/Message/ListPlansTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44

55
use Omnipay\Tests\TestCase;
66

7-
class ListInvoicesRequestTest extends TestCase
7+
class ListPlansTest extends TestCase
88
{
9+
/** @var ListPlansRequest */
10+
protected $request;
11+
912
public function setUp()
1013
{
1114
$this->request = new ListPlansRequest($this->getHttpClient(), $this->getHttpRequest());
@@ -18,7 +21,7 @@ public function testEndpoint()
1821

1922
public function testSendSuccess()
2023
{
21-
$this->setMockHttpResponse('ListPlans.txt');
24+
$this->setMockHttpResponse('ListPlansSuccess.txt');
2225
$response = $this->request->send();
2326

2427
$this->assertTrue($response->isSuccessful());
@@ -33,6 +36,6 @@ public function testSendSuccess()
3336
*/
3437
public function testSendFailure()
3538
{
36-
this->assertTrue(true);
39+
$this->assertTrue(true);
3740
}
3841
}

tests/Mock/ListPlansSuccess.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Access-Control-Allow-Credentials: true
88
Cache-Control: no-cache, no-store
99

1010
{
11-
"object" => "list",
12-
"url" => "/v1/plans",
13-
"has_more" => false,
14-
"data" => [
11+
"object": "list",
12+
"url": "/v1/plans",
13+
"has_more": false,
14+
"data": [
1515
{
1616
"id": "test-1",
1717
"object": "plan",

0 commit comments

Comments
 (0)