Skip to content

Commit 120a106

Browse files
authored
Merge pull request #327 from recurly/test-cleanup-and-release
Release 2.8.2
2 parents ddf4006 + 3998d32 commit 120a106

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Recurly PHP Client Library CHANGELOG
22

3+
## Version 2.8.2 (July 21th, 2017)
4+
5+
* Fixes a bug creating subscriptions for existing accounts (thanks to @g30rg) [#326](https://github.com/recurly/recurly-client-php/pull/326)
6+
37
## Version 2.8.1 (July 14th, 2017)
48

59
This bumps us to API v2.7 but does not contain any breaking changes.

Tests/Recurly/Subscription_Test.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,8 @@ public function testUpdateShippingAddressXml() {
114114
);
115115
}
116116

117-
public function testCreateSubscripionOnPreExistingAccount() {
118-
$account_code = 'abcdef1234567890';
119-
$fixture = 'accounts/create-201.xml';
120-
$this->client->addResponse('POST', '/accounts', $fixture);
121-
$this->client->addResponse('GET', "/accounts/$account_code", $fixture);
122-
123-
$account = new Recurly_Account(null, $this->client);
124-
$account->account_code = 'abcdef1234567890';
125-
126-
$account->create();
127-
117+
public function testCreateSubscripionWithExistingAccountXml() {
118+
$this->client->addResponse('GET', "/accounts/abcdef1234567890", 'accounts/show-200.xml');
128119
$account = Recurly_Account::get('abcdef1234567890', $this->client);
129120

130121
$subscription = new Recurly_Subscription();

lib/recurly/client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Recurly_Client
4444
*/
4545
private $_acceptLanguage = 'en-US';
4646

47-
const API_CLIENT_VERSION = '2.8.1';
47+
const API_CLIENT_VERSION = '2.8.2';
4848
const DEFAULT_ENCODING = 'UTF-8';
4949

5050
const GET = 'GET';

0 commit comments

Comments
 (0)