From be37838d4d98eadfe762fbccb8a5e14a9fef0445 Mon Sep 17 00:00:00 2001 From: Faiber Rodriguez Date: Tue, 6 Feb 2024 14:14:04 -0500 Subject: [PATCH] list test --- .../PerformanceObligation_List_Test.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Tests/Recurly/PerformanceObligation_List_Test.php diff --git a/Tests/Recurly/PerformanceObligation_List_Test.php b/Tests/Recurly/PerformanceObligation_List_Test.php new file mode 100644 index 00000000..969d5c86 --- /dev/null +++ b/Tests/Recurly/PerformanceObligation_List_Test.php @@ -0,0 +1,20 @@ +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); + } +}