Skip to content

Commit

Permalink
Added additional test.
Browse files Browse the repository at this point in the history
  • Loading branch information
anderly committed Sep 8, 2023
1 parent 5fcf9bb commit c88701d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ODataClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}

0 comments on commit c88701d

Please sign in to comment.