Skip to content

Commit c88701d

Browse files
committed
Added additional test.
1 parent 5fcf9bb commit c88701d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/ODataClientTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,15 @@ public function testODataClientCursorIteratingShouldReturnAll20Entities()
295295

296296
$this->assertEquals($expectedCount, $counter);
297297
}
298+
299+
public function testODataClientCursorPageSizeOf20ShouldReturnAllEntities()
300+
{
301+
$odataClient = new ODataClient($this->baseUrl);
302+
303+
$pageSize = 20;
304+
305+
$data = $odataClient->from('People')->pageSize($pageSize)->cursor();
306+
307+
$this->assertEquals($pageSize, count($data->toArray()));
308+
}
298309
}

0 commit comments

Comments
 (0)