Skip to content

Commit

Permalink
list test
Browse files Browse the repository at this point in the history
  • Loading branch information
faiberrec committed Feb 6, 2024
1 parent c39a4c7 commit be37838
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Tests/Recurly/PerformanceObligation_List_Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

class Recurly_PerformanceObligationListTest extends Recurly_TestCase
{
public function testPerformanceObligationListAll() {
$this->client->addResponse(
'GET',
'/performance_obligations',
'performance_obligations/list-200.xml'
);

$performance_obligations = Recurly_PerformanceObligationList::get(null, $this->client);
$this->assertInstanceOf('Recurly_PerformanceObligationList', $performance_obligations);

$performance_obligation = $performance_obligations->current();
$this->assertInstanceOf('Recurly_PerformanceObligation', $performance_obligation);

$this->assertEquals(iterator_count($performance_obligations), 3);
}
}

0 comments on commit be37838

Please sign in to comment.