From c88701dc886b50cfcb59414d51e2b7713c2713d0 Mon Sep 17 00:00:00 2001 From: Adam Anderly Date: Fri, 8 Sep 2023 11:52:47 -0500 Subject: [PATCH] Added additional test. --- tests/ODataClientTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/ODataClientTest.php b/tests/ODataClientTest.php index 045a164..3e0854c 100644 --- a/tests/ODataClientTest.php +++ b/tests/ODataClientTest.php @@ -295,4 +295,15 @@ public function testODataClientCursorIteratingShouldReturnAll20Entities() $this->assertEquals($expectedCount, $counter); } + + public function testODataClientCursorPageSizeOf20ShouldReturnAllEntities() + { + $odataClient = new ODataClient($this->baseUrl); + + $pageSize = 20; + + $data = $odataClient->from('People')->pageSize($pageSize)->cursor(); + + $this->assertEquals($pageSize, count($data->toArray())); + } }