Skip to content

Commit

Permalink
Revert changes in 83bc9d5
Browse files Browse the repository at this point in the history
  • Loading branch information
anderly committed Jul 31, 2024
1 parent 83bc9d5 commit 127a790
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/ODataClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ protected function getDefaultPostProcessor()

/**
* Gets the IAuthenticationProvider for authenticating requests.
* @var IAuthenticationProvider
*
* @return Closure|IAuthenticationProvider
*/
Expand Down Expand Up @@ -232,7 +231,6 @@ public function get($requestUri, $bindings = [])
*
* @param string $requestUri
* @param array $bindings
* @param array $skipToken
*
* @return IODataRequest
*/
Expand Down
10 changes: 5 additions & 5 deletions tests/ODataClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function testODataClientSkipToken()
$this->assertEquals($pageSize, $page2results->count());
}

$lastPageSize = 5;
$lastPageSize = 4;
if ($page2skiptoken) {
$page3response = $odataClient->from('People')->skiptoken($page2skiptoken)->get()->first();
$page3results = collect($page3response->getResponseAsObject(Entity::class));
Expand Down Expand Up @@ -157,7 +157,7 @@ public function testODataClientCursorCountShouldEqualTotalEntitySetCount()

$data = $odataClient->from('People')->pageSize($pageSize)->cursor();

$expectedCount = 21;
$expectedCount = 20;

$this->assertEquals($expectedCount, $data->count());
}
Expand Down Expand Up @@ -196,7 +196,7 @@ public function testODataClientCursorLastShouldReturnEntityKristaKemp()

$last = $data->last();
$this->assertInstanceOf(Entity::class, $last);
$this->assertEquals('Seymour', $last->UserName);
$this->assertEquals('kristakemp', $last->UserName);
}

public function testODataClientCursorSkip1FirstShouldReturnEntityScottKetchum()
Expand Down Expand Up @@ -273,7 +273,7 @@ public function testODataClientCursorSkip16LastPageShouldBe4Records()
$data = $odataClient->from('People')->pageSize($pageSize)->cursor();

$lastPage = $data->skip(16);
$lastPageSize = 5;
$lastPageSize = 4;
$this->assertEquals($lastPageSize, count($lastPage->toArray()));
}

Expand All @@ -285,7 +285,7 @@ public function testODataClientCursorIteratingShouldReturnAll20Entities()

$data = $odataClient->from('People')->pageSize($pageSize)->cursor();

$expectedCount = 21;
$expectedCount = 20;
$counter = 0;

$data->each(function ($person) use(&$counter) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Query/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function testEntitySetCount()

$entitySet = 'People';

$expected = 21;
$expected = 20;

$actual = $builder->from($entitySet)->count();

Expand Down

0 comments on commit 127a790

Please sign in to comment.