-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
class Recurly_PerformanceObligationTest extends Recurly_TestCase | ||
{ | ||
function defaultResponses() { | ||
return array( | ||
array('GET', '/performance_obligations/6', 'performance_obligations/show-200.xml'), | ||
); | ||
} | ||
|
||
public function testPerformanceObligation() { | ||
$pob = Recurly_GeneralLedgerAccount::get('6', $this->client); | ||
|
||
$this->assertInstanceOf('Recurly_PerformanceObligation', $pob); | ||
$this->assertEquals('Over Time (Daily)', $pob->name); | ||
$this->assertEquals('6', $pob->id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<performance_obligations type="array"> | ||
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/6"> | ||
<id>6</id> | ||
<name>Over Time (Daily)</name> | ||
<created_at type="datetime">2023-08-11T18:57:57Z</created_at> | ||
<updated_at type="datetime">2023-08-11T18:57:57Z</updated_at> | ||
</performance_obligation> | ||
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/5"> | ||
<id>5</id> | ||
<name>Over Time (Partial Monthly)</name> | ||
<created_at type="datetime">2023-08-11T18:57:57Z</created_at> | ||
<updated_at type="datetime">2023-08-11T18:57:57Z</updated_at> | ||
</performance_obligation> | ||
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/4"> | ||
<id>4</id> | ||
<name>Point in Time</name> | ||
<created_at type="datetime">2023-08-11T18:57:57Z</created_at> | ||
<updated_at type="datetime">2023-08-11T18:57:57Z</updated_at> | ||
</performance_obligation> | ||
</performance_obligations> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/6"> | ||
<id>6</id> | ||
<name>Over Time (Daily)</name> | ||
<created_at type="datetime">2023-08-11T18:57:57Z</created_at> | ||
<updated_at type="datetime">2023-08-11T18:57:57Z</updated_at> | ||
</performance_obligation> |