File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 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
59This bumps us to API v2.7 but does not contain any breaking changes.
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ' ;
You can’t perform that action at this time.
0 commit comments