Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
faiberrec committed Feb 1, 2024
1 parent 43e2633 commit 6bdc09d
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Recurly/GeneralLedgerAccount_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function defaultResponses() {
);
}

public function Recurly_GeneralLedgerAccount() {
public function testGeneralLedgerAccount() {
$gla = Recurly_GeneralLedgerAccount::get('u90r5deeaxix', $this->client);

$this->assertInstanceOf('Recurly_GeneralLedgerAccount', $gla);
Expand Down
12 changes: 12 additions & 0 deletions Tests/fixtures/general_ledger_accounts/create-201.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
HTTP/1.1 201 Created
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix">
<id>u90r5deeaxix</id>
<code>code1</code>
<account_type>revenue</account_type>
<description>string</description>
<created_at type="datetime">2024-01-16T14:34:16Z</created_at>
<updated_at type="datetime">2024-01-16T14:34:16Z</updated_at>
</general_ledger_account>
78 changes: 78 additions & 0 deletions Tests/fixtures/general_ledger_accounts/index-200-liability.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_accounts type="array">
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/ty4utwr0mrgz">
<id>ty4utwr0mrgz</id>
<code>90-557-279-6957</code>
<account_type>liability</account_type>
<description>optimize rich content</description>
<created_at type="datetime">2023-11-22T16:36:34Z</created_at>
<updated_at type="datetime">2023-11-22T16:36:34Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twyyzw8vcm36">
<id>twyyzw8vcm36</id>
<code>45-571-736-1179</code>
<account_type>liability</account_type>
<description>incentivize sexy functionalities</description>
<created_at type="datetime">2023-11-16T19:45:05Z</created_at>
<updated_at type="datetime">2023-11-16T19:45:05Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twywtf01wkgb">
<id>twywtf01wkgb</id>
<code>70-818-669-8644</code>
<account_type>liability</account_type>
<description>generate transparent metrics</description>
<created_at type="datetime">2023-11-16T19:32:52Z</created_at>
<updated_at type="datetime">2023-11-16T19:32:52Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twywqfr48v9l">
<id>twywqfr48v9l</id>
<code>7-271-680-5012</code>
<account_type>liability</account_type>
<description>My main liability account</description>
<created_at type="datetime">2023-11-16T19:32:24Z</created_at>
<updated_at type="datetime">2023-11-16T19:32:24Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twyvjlhbnej2">
<id>twyvjlhbnej2</id>
<code>1234</code>
<account_type>liability</account_type>
<description>My main liability account</description>
<created_at type="datetime">2023-11-16T19:25:44Z</created_at>
<updated_at type="datetime">2023-11-16T19:25:44Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trkzlcm2pde8">
<id>trkzlcm2pde8</id>
<code>validategla</code>
<account_type>liability</account_type>
<description>HOWDY</description>
<created_at type="datetime">2023-10-20T15:22:49Z</created_at>
<updated_at type="datetime">2023-10-20T15:22:49Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trkzinjccchm">
<id>trkzinjccchm</id>
<code>j</code>
<account_type>liability</account_type>
<description>HOWDY</description>
<created_at type="datetime">2023-10-20T15:22:24Z</created_at>
<updated_at type="datetime">2023-10-20T15:22:24Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/tep8f2u4qq51">
<id>tep8f2u4qq51</id>
<code>get dat monayyy</code>
<account_type>liability</account_type>
<description>i can has money</description>
<created_at type="datetime">2023-08-16T15:45:40Z</created_at>
<updated_at type="datetime">2023-08-16T15:45:40Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/tejv6lw4eovy">
<id>tejv6lw4eovy</id>
<code>demo_liability</code>
<account_type>liability</account_type>
<description>i be descriptin'</description>
<created_at type="datetime">2023-08-15T21:42:35Z</created_at>
<updated_at type="datetime">2023-09-13T15:38:04Z</updated_at>
</general_ledger_account>
</general_ledger_accounts>
38 changes: 38 additions & 0 deletions Tests/fixtures/general_ledger_accounts/index-200-revenue.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_accounts type="array">
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix">
<id>u90r5deeaxix</id>
<code>string</code>
<account_type>revenue</account_type>
<description>string</description>
<created_at type="datetime">2024-01-16T14:34:16Z</created_at>
<updated_at type="datetime">2024-01-16T14:34:16Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trl0h3br1dl7">
<id>trl0h3br1dl7</id>
<code>100</code>
<account_type>revenue</account_type>
<description>HOWDY</description>
<created_at type="datetime">2023-10-20T15:27:46Z</created_at>
<updated_at type="datetime">2023-10-20T15:27:46Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trkz0atorlk3">
<id>trkz0atorlk3</id>
<code>NEW code</code>
<account_type>revenue</account_type>
<description>NEW description</description>
<created_at type="datetime">2023-10-20T15:19:32Z</created_at>
<updated_at type="datetime">2023-10-20T15:29:30Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/thproqnpcuwp">
<id>thproqnpcuwp</id>
<code>303</code>
<account_type>revenue</account_type>
<description></description>
<created_at type="datetime">2023-08-31T20:46:04Z</created_at>
<updated_at type="datetime">2023-08-31T20:46:04Z</updated_at>
</general_ledger_account>
</general_ledger_accounts>
110 changes: 110 additions & 0 deletions Tests/fixtures/general_ledger_accounts/index-200.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_accounts type="array">
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix">
<id>u90r5deeaxix</id>
<code>string</code>
<account_type>revenue</account_type>
<description>string</description>
<created_at type="datetime">2024-01-16T14:34:16Z</created_at>
<updated_at type="datetime">2024-01-16T14:34:16Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/ty4utwr0mrgz">
<id>ty4utwr0mrgz</id>
<code>90-557-279-6957</code>
<account_type>liability</account_type>
<description>optimize rich content</description>
<created_at type="datetime">2023-11-22T16:36:34Z</created_at>
<updated_at type="datetime">2023-11-22T16:36:34Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twyyzw8vcm36">
<id>twyyzw8vcm36</id>
<code>45-571-736-1179</code>
<account_type>liability</account_type>
<description>incentivize sexy functionalities</description>
<created_at type="datetime">2023-11-16T19:45:05Z</created_at>
<updated_at type="datetime">2023-11-16T19:45:05Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twywtf01wkgb">
<id>twywtf01wkgb</id>
<code>70-818-669-8644</code>
<account_type>liability</account_type>
<description>generate transparent metrics</description>
<created_at type="datetime">2023-11-16T19:32:52Z</created_at>
<updated_at type="datetime">2023-11-16T19:32:52Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twywqfr48v9l">
<id>twywqfr48v9l</id>
<code>7-271-680-5012</code>
<account_type>liability</account_type>
<description>My main liability account</description>
<created_at type="datetime">2023-11-16T19:32:24Z</created_at>
<updated_at type="datetime">2023-11-16T19:32:24Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/twyvjlhbnej2">
<id>twyvjlhbnej2</id>
<code>1234</code>
<account_type>liability</account_type>
<description>My main liability account</description>
<created_at type="datetime">2023-11-16T19:25:44Z</created_at>
<updated_at type="datetime">2023-11-16T19:25:44Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trl0h3br1dl7">
<id>trl0h3br1dl7</id>
<code>100</code>
<account_type>revenue</account_type>
<description>HOWDY</description>
<created_at type="datetime">2023-10-20T15:27:46Z</created_at>
<updated_at type="datetime">2023-10-20T15:27:46Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trkzlcm2pde8">
<id>trkzlcm2pde8</id>
<code>validategla</code>
<account_type>liability</account_type>
<description>HOWDY</description>
<created_at type="datetime">2023-10-20T15:22:49Z</created_at>
<updated_at type="datetime">2023-10-20T15:22:49Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trkzinjccchm">
<id>trkzinjccchm</id>
<code>j</code>
<account_type>liability</account_type>
<description>HOWDY</description>
<created_at type="datetime">2023-10-20T15:22:24Z</created_at>
<updated_at type="datetime">2023-10-20T15:22:24Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/trkz0atorlk3">
<id>trkz0atorlk3</id>
<code>NEW code</code>
<account_type>revenue</account_type>
<description>NEW description</description>
<created_at type="datetime">2023-10-20T15:19:32Z</created_at>
<updated_at type="datetime">2023-10-20T15:29:30Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/thproqnpcuwp">
<id>thproqnpcuwp</id>
<code>303</code>
<account_type>revenue</account_type>
<description></description>
<created_at type="datetime">2023-08-31T20:46:04Z</created_at>
<updated_at type="datetime">2023-08-31T20:46:04Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/tep8f2u4qq51">
<id>tep8f2u4qq51</id>
<code>get dat monayyy</code>
<account_type>liability</account_type>
<description>i can has money</description>
<created_at type="datetime">2023-08-16T15:45:40Z</created_at>
<updated_at type="datetime">2023-08-16T15:45:40Z</updated_at>
</general_ledger_account>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/tejv6lw4eovy">
<id>tejv6lw4eovy</id>
<code>demo_liability</code>
<account_type>liability</account_type>
<description>i be descriptin'</description>
<created_at type="datetime">2023-08-15T21:42:35Z</created_at>
<updated_at type="datetime">2023-09-13T15:38:04Z</updated_at>
</general_ledger_account>
</general_ledger_accounts>
12 changes: 12 additions & 0 deletions Tests/fixtures/general_ledger_accounts/show-200.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix">
<id>u90r5deeaxix</id>
<code>code1</code>
<account_type>revenue</account_type>
<description>string</description>
<created_at type="datetime">2024-01-16T14:34:16Z</created_at>
<updated_at type="datetime">2024-01-16T14:34:16Z</updated_at>
</general_ledger_account>

0 comments on commit 6bdc09d

Please sign in to comment.